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 register
- function login
- function forgetPassword

But in Zend tutorials, I see a lot of this:

class LoginController
class RegisterController

Which way is right? Or has this something to do with the MVC pattern?

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Naming-controllers-tp3744787p3744787.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to