Where are the menu,header,footer loaded in an MVC structures
Posted
by Saif Bechan
on Stack Overflow
See other posts from Stack Overflow
or by Saif Bechan
Published on 2010-03-19T05:11:48Z
Indexed on
2010/03/19
5:21 UTC
Read the original article
Hit count: 289
I am creating an framework in PHP, and i am using and MVC structure. My link look something like this: mydomain.com/controller/action
So this link loads a controller, which loads the needed action. Now my page needs a header, footer, and it has a menu which is in the database. Where do i load all these things.
Is this the job of the controller, or the job of the model.
© Stack Overflow or respective owner