Help - Controllers (MVC)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
michaeru
Forum Commoner
Posts: 28
Joined: Sun Mar 07, 2010 5:22 pm

Help - Controllers (MVC)

Post 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?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Help - Controllers (MVC)

Post by Christopher »

Neither ... in PHP the Controller usually includes the Model and View -- then passes the Model to the View.
(#10850)
michaeru
Forum Commoner
Posts: 28
Joined: Sun Mar 07, 2010 5:22 pm

Re: Help - Controllers (MVC)

Post 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.
Post Reply