CodeIgniter Forums

Full Version: How to structure admin section using HMVC?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]term25[/eluser]
Is there any tutorial how to structure admin and frontend parts of the web using HMVC?

In traditional CI way without using HMVC it looks like this:
Quote:views/
/admin/
/admin_frontpage_view.php
/admin_add_new_blog_view.php
/admin_list_blogs_view.php
...
/frontpage/
/frontpage_view.php
/blogs_list_view.php
/blog_detail_view.php
...

So, e.g. in my controller for frontpage homepage I call in index() function the view like that:
Quote:$this->load->view('frontpage/frontpage_view')

and admin homepage like that:
Quote:$this->load->view('admin/frontpage_view')


How should the folder structure in HMVC in this case look like?