Skip to content
Permalink
Browse files

Deprecating a number of Controller properties and adding $request.

  • Loading branch information...
markstory committed May 8, 2010
1 parent 26f7fce commit 22161874cb2205ccffe722807c583d868e2ff0e7
Showing with 12 additions and 0 deletions.
  1. +12 −0 cake/libs/controller/controller.php
@@ -49,13 +49,15 @@ class Controller extends Object {
* Stores the current URL, relative to the webroot of the application.
*
* @var string
* @deprecated Will be removed in future versions. Use $this->request->here instead
*/
public $here = null;
/**
* The webroot of the application.
*
* @var string
* @deprecated Will be removed in future versions. Use $this->request->webroot instead
*/
public $webroot = null;
@@ -96,6 +98,7 @@ class Controller extends Object {
*
* @var array
* @link http://book.cakephp.org/view/963/The-Parameters-Attribute-params
* @deprecated Will be removed in future versions. Use $this->request instead
*/
public $params = array();
@@ -104,9 +107,17 @@ class Controller extends Object {
* using the `$this->data['ModelName']['fieldName']` pattern.
*
* @var array
* @deprecated Will be removed in future versions. Use $this->request->data instead
*/
public $data = array();
/**
* An instance of a CakeRequest object that contains information about the current request.
*
* @var CakeRequest
*/
public $request;
/**
* Holds pagination defaults for controller actions. The keys that can be included
* in this array are: 'conditions', 'fields', 'order', 'limit', 'page', and 'recursive',
@@ -159,6 +170,7 @@ class Controller extends Object {
* Base URL path.
*
* @var string
* @deprecated Will be removed in future versions. Use $this->request->base instead
*/
public $base = null;

0 comments on commit 2216187

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