When I run the command yiic test test, I get the following error and backtrace:
The TestCommand.php (located in protected/commands/) file looks like this:
And my Test.php (located in protected/components/) file looks like this:
My config has these lines:
What's causing the problem?
PHP Error[2]: include(Test.php): failed to open stream: No such file or directory in file /var/www/yii/framework/YiiBase.php at line 421 #0 /var/www/yii/framework/YiiBase.php(421): autoload() #1 unknown(0): autoload() #2 /var/www/inviso/protected/commands/TestCommand.php(4): spl_autoload_call() #3 unknown(0): TestCommand->actionTest() #4 /var/www/yii/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs() #5 /var/www/yii/framework/console/CConsoleCommandRunner.php(67): TestCommand->run() #6 /var/www/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run() #7 /var/www/yii/framework/base/CApplication.php(169): CConsoleApplication->processRequest() #8 /var/www/yii/framework/yiic.php(33): CConsoleApplication->run() #9 /var/www/inviso/protected/yiic.php(7): require_once() #10 /var/www/inviso/protected/yiic(4): require_once()
The TestCommand.php (located in protected/commands/) file looks like this:
<?php class TestCommand extends CConsoleCommand { public function actionTest() { $test = new Test; }
And my Test.php (located in protected/components/) file looks like this:
<?php class Test { }
My config has these lines:
'import'=>array( 'application.models.*', 'application.components.*', )
What's causing the problem?