2014-03-06 46 views
1

我安装这个扩展http://www.yiiframework.com/extension/yii-resque/PHP - ./yiic rresque开始什么都不做

[email protected]:/path/to/protected$ ./yiic rresque start 
Yii command runner (based on Yii v1.1.13) 
Usage: ./yiic <command-name> [parameters...] 

The following commands are available: 
- message 
- migrate 
- shell 
- webapp 

To see individual command help, use the following: 
    ./yiic help <command-name> 

什么可能是错误的?

编辑

我想通了这个问题:我没有把RResqueCommand.php到./protected/commands文件夹中。

回答

1

RResqueCommand.php内保护/命令

根据yii docs

控制台命令被存储为在CConsoleApplication::commandPath指定的目录下的类文件。

默认情况下,这指的是目录protected/commands

+0

您可能需要查看http://stackoverflow.com/help/how-to-answer – Kruser

+0

添加一些代码而不是链接。 –

0

将这个变成你的config/console.php:

'import' => array(
    'application.models.*', 
    'application.components.*', 
), 
+0

谢谢你的回答。但它并没有解决问题。 – arfname