Beginnings of model loading

This commit is contained in:
José Lorenzo Rodríguez 2010-12-04 02:57:20 -04:30
parent ec93152c9a
commit fa83ecda5b
5 changed files with 3 additions and 5 deletions

View file

@ -22,7 +22,7 @@
* Include files
*/
App::uses('CakeResponse', 'Network');
App::uses('ClassRegistry', 'Core');
App::uses('ClassRegistry', 'Utility');
App::uses('ComponentCollection', 'Controller');
App::uses('View', 'View');

View file

@ -733,9 +733,7 @@ class App {
switch ($load) {
case 'model':
if (!class_exists('Model')) {
require LIBS . 'model' . DS . 'model.php';
}
App::uses('Model', 'Model');
if (!class_exists('AppModel')) {
App::import($type, 'AppModel', false);
}

View file

@ -18,7 +18,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('String', 'Core');
App::uses('String', 'Utility');
/**
* Class used for manipulation of arrays.