Welcome Guest, Not a member yet? Register   Sign In
How to structure admin section using HMVC?
#1

[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?




Theme © iAndrew 2016 - Forum software by © MyBB