|
|
@@ -89,6 +89,8 @@ class Controller implements EventListener {
|
|
|
/**
|
|
|
* The name of this controller. Controller names are plural, named after the model they manipulate.
|
|
|
*
|
|
|
+ * Set automatically using conventions in Controller::__construct().
|
|
|
+ *
|
|
|
* @var string
|
|
|
* @link http://book.cakephp.org/2.0/en/controllers.html#controller-attributes
|
|
|
*/
|
|
|
@@ -216,8 +218,21 @@ 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.
|
|
|
*
|
|
|
+ * Sets a number of properties based on conventions if they are empty. To override the
|
|
|
+ * conventions CakePHP uses you can define properties in your class declaration.
|
|
|
+ *
|
|
|
* @param \Cake\Network\Request $request Request object for this controller. Can be null for testing,
|
|
|
* but expect that features that use the request parameters will not work.
|
|
|
* @param \Cake\Network\Response $response Response object for this controller.
|