开发者

Backend And frontend for an application - Codeigniter

开发者 https://www.devze.com 2023-02-04 15:04 出处:网络
I need to ask a question that how to configure a CI system which consists both the admin as well as t开发者_开发技巧he frontend section into a single CI installation.

I need to ask a question that how to configure a CI system which consists both the admin as well as t开发者_开发技巧he frontend section into a single CI installation.

Thanks in advance

J


Phil Sturgeon posted 3 methods for achieving this exact thing with recommendations on where each method may be used. http://philsturgeon.co.uk/blog/2009/07/Create-an-Admin-panel-with-CodeIgniter


I generally use a standard CI setup; just with a separate controller(s) for the Admin area which controls authentication/admin interface/etcetera.

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

Under those you might have more sub folders

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

and so on

The relative path must be used when loading views contained within subdirectories.

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号