开发者

Backend And frontend for an application - Codeigniter

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜