我的目录结构是这样的
./
±assets
±css
±images
±index.php
±index-test.php
±js
±protected
±themes
执行这条命令,没有任何输出就直接退出了
/usr/local/php5/bin/php protected/yiic shell ./index.php
网页可以看,protected/commands/下的脚本可以跑
请问是什么原因
我的目录结构是这样的
./
±assets
±css
±images
±index.php
±index-test.php
±js
±protected
±themes
执行这条命令,没有任何输出就直接退出了
/usr/local/php5/bin/php protected/yiic shell ./index.php
网页可以看,protected/commands/下的脚本可以跑
请问是什么原因
补充一下,我跟踪protected\yiic.php发现他直接用了../../yii-1.1.7.r3135/framework/yiic.php
但是我在framework/yiic.php的头部加了
echo "xxxxxxxxx\n";
exit;
还是没有任何输出就结束了
找到原因了,是在SiteController的public function actionIndex()中的redirect
这个函数为什么会在yiic的命令行里执行到呢?