Making import() ing a component ensure that the Component base class is loaded.

This commit is contained in:
mark_story 2010-09-07 23:39:31 -04:00
parent 0f23634382
commit 4ff52da57e

View file

@ -1107,6 +1107,7 @@ class App {
return array('class' => $type, 'suffix' => $type, 'path' => $path);
break;
case 'component':
App::import('Core', 'Component', false);
if ($plugin) {
$path = $pluginPath . DS . 'controllers' . DS . 'components' . DS;
}