Skip to content

Commit

Permalink
repaire help on View class document
Browse files Browse the repository at this point in the history
  • Loading branch information
saeideng committed Jan 3, 2016
1 parent 629dd25 commit bcbb63d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/View/View.php
Expand Up @@ -40,7 +40,12 @@
* layout using `$this->set()`
*
* View class supports using plugins as themes. You can set
* `$this->theme = 'SuperHot'` in your Controller to use plugin `SuperHot` as a
*
* `public function beforeRender(\Cake\Event\Event $event)
* {
* $this->viewBuilder()->theme('SuperHot');
* }`
* in your Controller to use plugin `SuperHot` as a
* theme. Eg. If current action is Posts::index() then View class will look for
* template file `plugins/SuperHot/Template/Posts/index.ctp`. If a theme template
* is not found for the current action the default app template file is used.
Expand Down

0 comments on commit bcbb63d

Please sign in to comment.