-
Notifications
You must be signed in to change notification settings - Fork 7
Override Directories
vad edited this page Aug 18, 2010
·
1 revision
To override default views, create a directory override
in the application root:
$ ls
app_controller.php config controllers index.php install INSTALL.md LICENSE.txt models override plugins README.md tmp vendors views webroot
Now you can place a views
directory inside it, and replicate the structure of the views you want to override. For example you can replace a help.ctp
page creating override/views/pages/help.ctp
.
This behaviour is defined in app_controller.php
’s beforeFilter
function.
Default webroot behaviour is different from the above. Basically you can freely choose where to place files under webroot, so taolin has no conventions for this.
Our main project has a symbolic link from webroot/local
to a directory under revision control (outside cake/taolin/
application) where we a keep local webroot.