Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Teaching CodeIgniter - MVC and PHP

CodeIgniter is becoming a very popular web Framework for PHP, and I can see why. Another private session today with a customer who wanted to go through the whole MVC thing - well experienced in web and PHP, and objects too... just needing to get into Frameworks to write code that's more re-usable and maintainable amongst other things.

Downloaded CodeIgniter, unzipped it into a directory within the document root, and added a few file... by the end of the day we had model, view, controller; sessions, forms with validation, and sticky fields. Shared headers and footers across a number of different pages. Routing of lots of URLs to the same controller script.

With ANY Framework, getting to the first application that uses all the major elements (as outlined above) is the biggest hurdle - from "hello world" to real application. With CodeIgniter, my demonstration was just 8 files and it could have been fewer! Here they are:

Router .htaccess
Controller controllers/passenger.php
Model models/places_model.php
View (header) views/transwilts_top.php
View (footer) views/transwilts_tail.php
View (most pages) views/mainpages.php
View (form) views/mailpage.php
Configuration (for session security) config/config.php

I'm happy to teach you PHP - we have a variety of courses from the basics of programming in PHP - Learning to Program in PHP - through PHP Programming to PHP Techniques, where we look at Frameworks, Service and other more advanced topics too.
(written 2013-06-12, updated 2013-06-15)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
Q915 - Object Orientation and General technical topics - Principles of Model - View - Controller
  [687] Presentation, Business and Persistence layers in Perl and PHP - (2006-04-17)
  [2199] Improving the structure of your early PHP programs - (2009-05-25)
  [2612] The Model, View, Controller architecture (MVC) - what, why and how. - (2010-02-01)
  [3237] Using functions to keep look and feel apart from calculations - simple C example - (2011-04-09)
  [3454] Your PHP website - how to factor and refactor to reduce growing pains - (2011-09-24)
  [3624] Why do we need a Model, View, Controller architecture? - (2012-02-25)
  [3705] Django Training Courses - UK - (2012-04-23)
  [3919] What is a web framework? - (2012-11-10)
  [4010] Really Simple Rails - (2013-02-17)
  [4066] MVC and Frameworks - a lesson from first principles in PHP - (2013-04-19)
  [4320] An example of Model-View-Controller techniques in a Perl / CGI script - (2014-11-20)
  [4391] Refactoring Perl applications to give them a rosy future - (2015-01-11)
  [4527] Hello Flask world / Python web micro framework - (2015-10-11)
  [4641] Using an MVC structure - even without a formal framework - (2016-02-07)
  [4691] Real life PHP application using our course training MVC example - (2016-06-05)

H321 - PHP - CodeIgniter
  [4053] Frameworks - learning through exploring and understanding data sources - (2013-03-27)
  [4060] CodeIgniter - an excellent PHP framework with an easy start point - (2013-04-06)
  [4062] Sessions, forms and validation in CodeIgniter - early examples - (2013-04-13)

H302 - PHP - MVC, 4 layer model and templating
  [1634] Kiss and Book - (2008-05-07)
  [1716] Larger applications in PHP - (2008-07-22)
  [1766] Diagrams to show you how - Tomcat, Java, PHP - (2008-08-22)
  [2174] Application design in PHP - multiple step processes - (2009-05-11)
  [2221] Adding a newsfeed for your users to a multipage PHP application - (2009-06-06)
  [3539] Separating program and artwork in PHP - easier maintainance, and better for the user - (2011-12-05)
  [3956] Zend / layout of MVC and other files in an example application (PHP) - (2012-12-16)
  [4314] PHP training - refreshed modern course, backed up by years of practical experience - (2014-11-16)


Back to
Wiltshire and Melksham Transport - what is going on?
Previous and next
or
Horse's mouth home
Forward to
More or less back - what happened to our server the other day
Some other Articles
We not only teach PHP and Python - we teach good PHP and Python Practice!
Is Lua an Object Oriented language?
International Melksham - industry, and beautiful countryside
More or less back - what happened to our server the other day
Teaching CodeIgniter - MVC and PHP
Wiltshire and Melksham Transport - what is going on?
Really good friends - four in a bed!
Zigzag bus - forward for the future, or decaying service?
TransWilts meeting ...
What might you find at a tiny bed and breakfast?
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/4114_Tea ... d-PHP.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb