diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index f44df1d7f..4d421bd7d 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -42,89 +42,94 @@ */ class Controller extends Object { /** - * Name of the controller. + * Tshe name of this controller. Controller names are plural, named after the model they manipulate. * * @var string * @access public */ var $name = null; /** - * Stores the current URL (for links etc.) + * Stores the current URL, based from the webroot. * * @var string * @access public */ var $here = null; /** - * The webroot of the application + * The webroot of the application. Helpful if your application is placed in a folder below the domain name. * * @var string * @access public */ var $webroot = null; /** - * Action to be performed. + * The name of the controller action that was requested. * * @var string * @access public */ var $action = null; /** - * An array of names of models the particular controller wants to use. + * An array containing the class names of models this controller uses. + * + * Example: var $uses = array('Product', 'Post', 'Comment'); * * @var mixed A single name as a string or a list of names as an array. * @access protected */ var $uses = false; /** - * An array of names of built-in helpers to include. + * An array containing the names of helpers this controller uses. The array elements should + * not contain the -Helper part of the classname. + * + * Example: var $helpers = array('Html', 'Javascript', 'Time', 'Ajax'); * * @var mixed A single name as a string or a list of names as an array. * @access protected */ var $helpers = array('Html'); /** - * Parameters received in the current request, i.e. GET and POST data + * Parameters received in the current request, i.e. GET and POST data. * * @var array * @access public */ var $params = array(); /** - * POST'ed model data + * POSTed model data. * * @var array * @access public */ var $data = array(); /** - * Pagination defaults + * Pagination defaults. * * @var array * @access public */ var $paginate = array('limit' => 20, 'page' => 1); /** - * Sub-path for view files + * Sub-path for view files. * * @var string */ var $viewPath = null; /** - * Sub-path for layout files + * Sub-path for layout files. * * @var string */ var $layoutPath = null; /** - * Variables for the view + * Variables to be handed to the view. * * @var array * @access public */ var $viewVars = array(); /** - * Web page title + * Text to be placed in