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 * Include files
*/ */
App::uses('CakeResponse', 'Network'); App::uses('CakeResponse', 'Network');
App::uses('ClassRegistry', 'Core'); App::uses('ClassRegistry', 'Utility');
App::uses('ComponentCollection', 'Controller'); App::uses('ComponentCollection', 'Controller');
App::uses('View', 'View'); App::uses('View', 'View');

View file

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

View file

@ -18,7 +18,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('String', 'Core'); App::uses('String', 'Utility');
/** /**
* Class used for manipulation of arrays. * Class used for manipulation of arrays.