anyone have some ideas.
I am trying to develop a custom MVC framework. I wish to have separate MVC structure for specific portion of the application. For example, an admin panel to have its own MVC but the primary application should be the one that enables the admin panel. (Or as a Module)
For this I have found, HMVC concept that based on codeigniter framework. But I wish to build this from scratch.
I actually make it happen but the question is, what I am doing is correct or not.?
What I simply did was, call to a primary Controller (through the route) and I initiate a new "Router" in the controller and point to the separate folder with admin panel MVC file structure. But each time if I want to call any controller in the admin panel MVC, I have to call from the primary controller.
Can anyone tell me is that the correct way of implementing what I want to achieve.? If this is wrong, what is the correct way I should try?
There are not much resources I could find except the one based on codeigniter.
Look out for a framework called fuel and check it out its among the old frameworks that had the HMVC natively
I did not know about that framework. Thank you so much. I will check it out. 🙏
Обсуждают сегодня