This is how I setup my sites... all you need to do is edit two lines
in /webroot/index.php

Here is an example of what I replace them with...

//define('ROOT', dirname(dirname(dirname(__FILE__))));
define('ROOT', dirname(dirname(__FILE__)));

//define('APP_DIR', basename(dirname(dirname(__FILE__))));
define('APP_DIR', 'app');


You'll also need to do the same to test.php if you are using unit
tests.

Great thing about this, is that you can rename "webroot" folder to
anything and it works without problems.

Cheers,
Adam

On Jan 9, 8:28 am, majna <[EMAIL PROTECTED]> wrote:
> It would be nice to  have dir structure like this:
> /app
>      /controllers
>      /models
>      /views
> /webroot/
>
> sometimes it is hard to backup only source etc.
>
> On Jan 8, 10:50 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > Robby,
> > Good explanation and advice.
>
> > Another option is use the bootstrap.php. In there, you can point to
> > your model/view/controller directories which could be located anywhere
> > in your file system. This would all you to separate them out
> > completely from the main app directory. When you need to upgrade you
> > just move the bootstrap file into config directory of the new app and
> > your done.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to