Line | |
---|
1 | // CakePHP Dwoo bridge - v0.2 |
---|
2 | // ------------------------ |
---|
3 | // Installation : |
---|
4 | // ------------------------ |
---|
5 | // 1. Download and install the dwoo library, preferably on the |
---|
6 | // 'vendors' directory of CakePHP. However you can place it |
---|
7 | // anywhere you want; if you do, make sure to change the App::import |
---|
8 | // line in dwoo.php to include the dwoo library properly. |
---|
9 | // |
---|
10 | // 2. Place this file in the app/views directory, or on cake/libs/view. |
---|
11 | // |
---|
12 | // 3. Create the app/tmp/dwoo/cache and app/tmp/dwoo/compile directories |
---|
13 | // and make sure they are writable. |
---|
14 | // ------------------------ |
---|
15 | // Usage example : |
---|
16 | // ------------------------ |
---|
17 | |
---|
18 | // In your controller class you need to change the view property to |
---|
19 | // use Dwoo at some point in the execution using : |
---|
20 | |
---|
21 | $this->view = 'Dwoo'; |
---|
22 | |
---|
23 | // Or you can also override the view property in your AppController class as such : |
---|
24 | |
---|
25 | class AppController extends Controller { |
---|
26 | public $view = 'Dwoo'; |
---|
27 | } |
---|
28 | |
---|
29 | // If you want another template extension (default is .tpl) you must |
---|
30 | // edit the dwoo.php file at line 44 and change it to : |
---|
31 | $this->ext = ".html"; |
---|
32 | |
---|
33 | //{include $templatedir."index.tpl"} |
---|
Note: See
TracBrowser
for help on using the repository browser.