Reputation: 337
I created a console controller named beanstalk, this is my first time using the console controllers, am trying to run it from the terminal and i got these errors
Error: Getting unknown property: yii\console\Application::user
Error: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/apc.so'...
The Controller
class BeanstalkController extends \yii\console\Controller {
public function actionIndex() {
echo 'test console controller';
} }
and i am calling it using
php yii beanstalk
i also tried other actions names with no luck
here is my console config
return [
'id' => 'app-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'console\controllers',
'modules' => [],
'components' => [
'log' => [
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
]
],
'params' => $params,
];
can anyone help?
Upvotes: 0
Views: 471