A more flexible directory layout

Published on and tagged with cakephp  feature

The default directory layout of CakePHP is (very simplified):

/cakeinstallation
    /app
        /webroot
    /cake

If you wanted to use a different layout structure, you have had to use symlinks. In the coming release of CakePHP (RC5?) you can have the three directories “app” (it is not necessary to use this name), “webroot” and “cake” wherever you want to have them. You simply have to set three constants in “/app/webroot/index.php”.

2 comments baked

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License