googoli
شنبه 11 بهمن 1393, 01:08 صبح
سلام
من یک سری دستور پیدا کردم برای اجرای دستورات کنسول که در زیر برای شما قرار میدم
$commandPath = Yii::app()->getBasePath() . DIRECTORY_SEPARATOR . 'commands';
$runner = new CConsoleCommandRunner();
$runner->addCommands($commandPath);
$commandPath = Yii::getFrameworkPath() . DIRECTORY_SEPARATOR . 'panel' . DIRECTORY_SEPARATOR . 'commands';
//echo $commandPath ;
$runner->addCommands($commandPath);
$args = array('yiic', 'rbac','--interactive=0');
$runner->run($args);
مشکلی که من دارم می خوام بخش rbac که جناب شهرکی در اموزش ارائه دادن رو اینجا run کنم ؟
وقتی این دستورات اجرا میشه من این پیغام رو دریافت می کنم
</pre>Yii command runner (based on Yii v1.1.16)
Usage: yiic <command-name> [parameters...]
The following commands are available:
- rbac
To see individual command help, use the following:
yiic help <command-name>
من یک سری دستور پیدا کردم برای اجرای دستورات کنسول که در زیر برای شما قرار میدم
$commandPath = Yii::app()->getBasePath() . DIRECTORY_SEPARATOR . 'commands';
$runner = new CConsoleCommandRunner();
$runner->addCommands($commandPath);
$commandPath = Yii::getFrameworkPath() . DIRECTORY_SEPARATOR . 'panel' . DIRECTORY_SEPARATOR . 'commands';
//echo $commandPath ;
$runner->addCommands($commandPath);
$args = array('yiic', 'rbac','--interactive=0');
$runner->run($args);
مشکلی که من دارم می خوام بخش rbac که جناب شهرکی در اموزش ارائه دادن رو اینجا run کنم ؟
وقتی این دستورات اجرا میشه من این پیغام رو دریافت می کنم
</pre>Yii command runner (based on Yii v1.1.16)
Usage: yiic <command-name> [parameters...]
The following commands are available:
- rbac
To see individual command help, use the following:
yiic help <command-name>