Skip to content
Permalink
Browse files

Making import() ing a component ensure that the Component base class …

…is loaded.
  • Loading branch information...
markstory committed Sep 8, 2010
1 parent 0f23634 commit 4ff52da57ebec3815be1765007148a00c8590f6b
Showing with 1 addition and 0 deletions.
  1. +1 −0 cake/libs/configure.php
@@ -1107,6 +1107,7 @@ private static function __settings($type, $plugin, $parent) {
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;
}

0 comments on commit 4ff52da

Please sign in to comment.
You can’t perform that action at this time.