Skip to content
Permalink
Browse files

repaire help on View class document

  • Loading branch information...
saeideng committed Jan 3, 2016
1 parent 629dd25 commit bcbb63d1a7b36c7e95489ba2bed1baa021ec743c
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/View/View.php
@@ -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.

0 comments on commit bcbb63d

Please sign in to comment.
You can’t perform that action at this time.