Mad_Griffith Posted December 26, 2016 Share Posted December 26, 2016 Hi! I am starting to write my own MVC CMS just to learn about classes. One thing I do not understand is what is how in the MVC pattern a new class instance is generated in the controller and used in the view. Could you make an example with a Page class that would generate each page's body inside a static index.php? I'd just need a general example so that I can understand how to use instantiation properly in the context of page layouts and MVC. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now