HMVC and admin pages |
[eluser]gh0st[/eluser]
Its been a while since I've used HMVC and CodeIgniter. I am wondering when it comes to building admin pages, where do they go? Should admin be a standalone module , or do you make folders within each module (ie: blog would have an admin folder)? Lets assume I have a blog, and I need an admin panel for the blog. Quote:Modules > Do I put the admin folder in the controllers folder, wouldn't I also need a folder for the view folder too? Thanks
[eluser]gh0st[/eluser]
Well it doesn't matter what its called; something that manages the content for the blog has to be adminstered somewhere; my query is about context of the admin pages in relation to the module structure
[eluser]Crackarjack[/eluser]
Do I put the admin folder in the controllers folder, wouldn’t I also need a folder for the view folder too? yes you have to make it each module have separate controller model view, you have to make their own mvc for each module.
[eluser]PhilTem[/eluser]
I put my module specific admin-pages into a) either an admin-controller in the module's controllers folder or b) into a folder called admin in the module's controllers folder (if I got too many sub-pages I choose b), otherwise a)) Additionally, since the admin pages would be accessible via www.example.com/module/admin I add some routes making www.example.com/admin/module point to the admin-controller in the module's "module" controllers-folder. I think the people a PyroCMS use that technique, too, and it's also where I got the inspiration from |
Welcome Guest, Not a member yet? Register Sign In |