Backend and application interface - Codeigniter

I need to ask a question about how to configure a CI system, which consists of both an administrator and a frontend section in one CI installation.

Thanks in advance

J

+7
source share
2 answers

Phil Sturgeon has published 3 methods to achieve this exact thing with recommendations on where each method can be used. http://philsturgeon.co.uk/blog/2009/07/Create-an-Admin-panel-with-CodeIgniter

+9
source

I usually use the standard CI setting; just with separate controller (s) for the admin area that controls the authentication / administration / etcetera interface.

Then just split your views into separate folders in front of / and admin /

You may have more subfolders under them.

admin/settings/user.php admin/settings/template.php admin/content/newpage.php 

etc.

The relative path should be used when loading the views contained in subdirectories.

 $this->load->view('admin/settings/user', $data); 
0
source

All Articles