Skip to content

Commit

Permalink
Add missing property to Controller.
Browse files Browse the repository at this point in the history
This property was lost in the shuffle but should exist on Controller, as
it is modified by methods like setRequest().
  • Loading branch information
markstory committed Sep 16, 2014
1 parent 5d203b4 commit 98ff98e
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/Controller/Controller.php
Expand Up @@ -172,6 +172,24 @@ class Controller implements EventListener {
*/
public $viewClass = 'Cake\View\View';

/**
* The path to this controllers view templates.
* Example `Articles`
*
* Set automatically using conventions in Controller::__construct().
*
* @var string
*/
public $viewPath;

/**
* The name of the view file to render. The name specified
* is the filename in /app/Template/<SubFolder> without the .ctp extension.
*
* @var string
*/
public $view = null;

/**
* Instance of the View created during rendering. Won't be set until after
* Controller::render() is called.
Expand Down Expand Up @@ -213,16 +231,6 @@ class Controller implements EventListener {
*/
public $methods = array();

/**
* The path to this controllers view templates.
* Example `Articles`
*
* Set automatically using conventions in Controller::__construct().
*
* @var string
*/
public $viewPath;

/**
* Constructor.
*
Expand Down

0 comments on commit 98ff98e

Please sign in to comment.