Page 1 of 1

Help - Controllers (MVC)

Posted: Mon Jun 07, 2010 11:02 pm
by michaeru
Good Day,

I would just like to ask if controllers are better of to be:
-required/included on the view php file

or is it better if I:
-redirect the page to the controller php file then redirect to the view php file?

Re: Help - Controllers (MVC)

Posted: Tue Jun 08, 2010 1:12 am
by Christopher
Neither ... in PHP the Controller usually includes the Model and View -- then passes the Model to the View.

Re: Help - Controllers (MVC)

Posted: Tue Jun 08, 2010 1:30 am
by michaeru
My first time trying to really use MVC. Looked at the diagram again, and yes, got it mixed up. Reorganize for a while, and go back and ask again if I have queries, thank you.