Hello everyone,
Since a few months, I'm learning object oriented programming in PHP. Read
lots of tutorials on the net, but I'm also reading the book PHP Objects,
Patterns, and Practice at the moment.
I am told that an object should use a noun as classname.
Example:
class User
- function
The Controller part of the class name is a convention used by Zend
Framework that must be followed in order for it to be loaded. It also helps
reduce the chances of class name collisions.
You can still think of the controller class as a noun, but you'll need to
follow this convention in order to
-- Mr.nuub wbosl...@gmail.com wrote
(on Monday, 15 August 2011, 07:59 AM -0700):
Hello everyone,
Since a few months, I'm learning object oriented programming in PHP. Read
lots of tutorials on the net, but I'm also reading the book PHP Objects,
Patterns, and Practice at the moment.
I am