mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Beginnings of model loading
This commit is contained in:
parent
ec93152c9a
commit
fa83ecda5b
5 changed files with 3 additions and 5 deletions
|
@ -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');
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue