Well House Consultants
You are on the site of
Well House Consultants
Open Source Training Courses
hotel accommodation. You are welcome to browse and use
our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Well House Manor Resources
Object Orientation and General topics
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
C and C++ Resources
Web and Intranet Resources
PHP module H302
MVC, 4 layer model and templating
Exercises, examples and other material relating to training module H302. This topic is presented on public courses Learning to program in PHP
, PHP Programming
, PHP Techniques
, Intermediate PHP - weekend course / hobby / club / leisure users
, PHP Programming
, Learning to program in PHP
Related technical and longer articlesKeeping the PHP and the HTML apart
|Articles and tips on this subject||updated|
|4314||PHP training - refreshed modern course, backed up by years of practical experience|
Our PHP course agendas were updated recently, and last week we ran our first series of courses in the new way. Learning to program in PHP started on Monday for delegate who are new to programming (or rusty) and PHP Programing for experienced programmers converting to PHP staretd on Tuesday.
|4114||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 ...
|4066||MVC and Frameworks - a lesson from first principles in PHP|
PHP is a nice, easy entry level embedded tagging system - an "HTML++" language in which programmers and web site developers can drop elements of code into a web page and perform simple and straigtforward tasks very quickly. But the downside of that is that the resultant file very quickly becomes a confusing ...
|3956||Zend / layout of MVC and other files in an example application (PHP)|
Under the Zend Framework, all URLs get mapped to mvc.php which in turn acts as the router. There are separate directories / folders for code in each of the
and a wide variety of configuration files and libraries used too.
Here's a diagram showing the layout ...
|3539||Separating program and artwork in PHP - easier maintainance, and better for the user|
I can code reasonably well. But my graphic design sucks. And both skills are needed for even a simple web data entry form, or a small application.
Using the PHP "bull at a gate" approach, both business logic (the code) and look and feel (the graphic art stuff) can be written into a single file, but ...
|3454||Your PHP website - how to factor and refactor to reduce growing pains|
As your project grows ... what do you change? In an ideal world, you would know exactly what you were coding before you started, and write the full job to spec to last for many years. This isn't an ideal world, though. Our web site has changed over the years - we now have "version 8" (See [here] to ...
|2221||Adding a newsfeed for your users to a multipage PHP application|
As I wrote it, I realised this was turning into rather a long article, but never mind. It shows the major new components added to a "4 layer model" application I was working on the weekend before last to add in a newsfeed for logged in users to which they can contribute, together with a headlines-only ...
|2199||Improving the structure of your early PHP programs|
When you first coded in PHP, you probably wrote a different script to handle each form in a series - it's the natural way when you're early in the learning process, but it can lead to repeated code that's hard to follow, and some really horrid complicated conditionals.
On Saturday and Sunday, I demonstrated ...
|2174||Application design in PHP - multiple step processes|
When you're putting together a multiple step process in PHP (and that could be anything from a forum to an ordering system), you should bare in mind that each of the program elements will be the 'intermediate' step that takes you from one display to the next ... and that you can't be sure when page "X" ...
|1766||Diagrams to show you how - Tomcat, Java, PHP|
I like to work with a flipchart occasionally, and I have been doing so quite a bit this week, which is a week that I'm giving a wide ranging web server deployment course under Linux, covering both LAMP / PHP technologies, and Tomcat / Java too. Why do I like using a flipchart? Because it encourages ...
|1716||Larger applications in PHP|
I've just finished a two day PHP techniques course - a subject that's tremendous fun to present, and a huge benefit to the delegates, as PHP programs can be written with great beauty, maintainability and expandability (like a Picasso) or they can be an unmaintainable mess (making the dog's dinner look ...
|1634||Kiss and Book|
The headline on our story reads "We've got a New Online Booking System for our Open Source courses" ... but there's a story behind that headline.
We pride ourselves in our flexibility - the ability to treat each customer as an individual and offer him a solution to meet his or her needs. And that means ...
Examples from our training material
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
How to design and structure your application.
Model - View - Controller.
Top level, business logic, web helpers and template.
Objects - how and when to use them.
Handling the look and feel with DreamWeaver.
A little on database design.
Shopping cart applications.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.