Skip to content

Commit

Permalink
Beginnings of model loading
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 4, 2010
1 parent ec93152 commit fa83ecd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Controller.php
Expand Up @@ -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');

Expand Down
4 changes: 1 addition & 3 deletions lib/Cake/Core/App.php
Expand Up @@ -733,9 +733,7 @@ private static function __settings($type, $plugin, $parent) {

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);
}
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Set.php
Expand Up @@ -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.
Expand Down

0 comments on commit fa83ecd

Please sign in to comment.