Added some missing App::uses() calls

This commit is contained in:
José Lorenzo Rodríguez 2011-01-28 02:06:30 -04:30
parent 32e0d86976
commit 06fb51f19d
5 changed files with 6 additions and 6 deletions

View file

@ -264,9 +264,7 @@ class DbAcl extends Object implements AclInterface {
*/ */
function __construct() { function __construct() {
parent::__construct(); parent::__construct();
if (!class_exists('AclNode')) { App::uses('AclNode', 'Model');
require LIBS . 'model' . DS . 'db_acl.php';
}
$this->Aro = ClassRegistry::init(array('class' => 'Aro', 'alias' => 'Aro')); $this->Aro = ClassRegistry::init(array('class' => 'Aro', 'alias' => 'Aro'));
$this->Aco = ClassRegistry::init(array('class' => 'Aco', 'alias' => 'Aco')); $this->Aco = ClassRegistry::init(array('class' => 'Aco', 'alias' => 'Aco'));
} }

View file

@ -19,6 +19,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
App::uses('Component', 'Controller');
App::uses('Router', 'Routing'); App::uses('Router', 'Routing');
App::uses('Security', 'Utility'); App::uses('Security', 'Utility');
App::uses('Debugger', 'Utility'); App::uses('Debugger', 'Utility');

View file

@ -17,9 +17,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
/** App::uses('Component', 'Controller');
* Load Security class
*/
App::uses('Security', 'Utility'); App::uses('Security', 'Utility');
/** /**

View file

@ -16,6 +16,8 @@
* @since CakePHP(tm) v 1.2.0.3467 * @since CakePHP(tm) v 1.2.0.3467
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
App::uses('Component', 'Controller');
App::uses('Multibyte', 'I18n'); App::uses('Multibyte', 'I18n');
/** /**

View file

@ -20,6 +20,7 @@ App::uses('Controller', 'Controller');
App::uses('RequestHandlerComponent', 'Controller/Component'); App::uses('RequestHandlerComponent', 'Controller/Component');
App::uses('CakeRequest', 'Network'); App::uses('CakeRequest', 'Network');
App::uses('CakeResponse', 'Network'); App::uses('CakeResponse', 'Network');
App::uses('Router', 'Routing');
/** /**
* RequestHandlerTestController class * RequestHandlerTestController class