I am trying to learn MVC design patterns for web applications, so I decided to write my own php mvc structure I take it. Before writing this post, I read a lot of tutorials and read the forum about MVC. Now I very well understand the MVC idea, and how to control the controller-model-scene. I have to write a router and some modules (login, categories, ...) seem like it's working.
Now I am a little confused:
Now if I get the "localhost / log in" "I only get the entry form, if I say" localhost / categories " All is well, but I want to create an index controller and when I want to see the login form, categories and many more modules call "localhost / index"
My Consensus: I should call the controller Languages, categories) from indexController.php? I have a suggestion on how to increase the required module in one page sorry for the broken PS English No, the controller should not call each other's work. Some structures introduce you to implement "". < P> Administrators can use the same model, and are going to be different anyway, so that you can use the Shit to the categories provided $ categories & gt; getCategoriesList (so (eg for)) and then the Series controller is also used to view and index view controller. By making an HTTP request for a controller to call the other, by making an HTTP request - e.g. Getting an HTML snippet (another controller provided view) to display in your view via AJX or a source with a source for another controller (which is mostly a thought-provoking solution for illustration) Using IFrame.
Comments
Post a Comment