Skip to content
Permalink
Browse files

Tidy up doc block.

Refs #7953
  • Loading branch information...
markstory committed Jan 7, 2016
1 parent 2367b83 commit 9fd3dd254bab97a33ce73f9d45b23a3da86adf78
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/View/View.php
@@ -40,14 +40,17 @@
* layout using `$this->set()`
*
* View class supports using plugins as themes. You can set
*
* `public function beforeRender(\Cake\Event\Event $event)
*
* ```
* 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
* }
* ```
*
* in your Controller to use plugin `SuperHot` as a theme. Eg. If current action
* is PostsController::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.
*
* @property \Cake\View\Helper\FlashHelper $Flash

0 comments on commit 9fd3dd2

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