CakePHP controllers and models in a subdirectory

Hi, I wondered how I can put my components and models in subdirectories, say, I have a web application in which there are three different areas (admins, users, developers), each of which performs different actions and has a whole different interface, so I want the administrator to go to http://www.site.com/admin , etc.

I tried different souls, but no one worked for me, can anyone give me an example of how to do this.

am using CakePHP 2.1.1

Thanks in advance

+3
source share
3 answers

, , App::build(). , , Cake, , ..

App::build(array('Model' => array('/a/full/path/to/models/')));

Cake -, Model /a/full/path/to/models/.

, , : https://github.com/ichikaway/AutoAppBuild

, , , .

+8

, . : acl- .

+2

. cakephp. , . deizel , , .

0

All Articles