I have doubt regarding console applications; see, in the guide it says
Yet, when I run ./yiic in my protected directory, I only see my user defined commands, is there a way I can get access to both Yii’s system commands and my own at the same time? when I want to migrate, I have to change the config so the commandPath aims towards the system.cli.commands path.
I tried
export YII_CONSOLE_COMMANDS=/path/to/yii/cli/commands/
./yiic
with the same results, as I said, it’s not really an issue, it’s just that I find a bit annoying having to map either all my user commands or all the system commands to have both system and user commands available at the same time (defining the rest with the commandPath property), any tips on this? here’s my console config file:
<?php
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'MyApp',
'preload'=>array('log'),
'components'=>array(
'db'=>require('db.php'),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
),
);
Pretty much the default.
Cheers.