php - ./yiic rresque start does nothing

227 Views Asked by At

I installed this extension http://www.yiiframework.com/extension/yii-resque/

user@host:/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>

What's might be wrong?

EDIT

I figured out the problem: I didn't put RResqueCommand.php into ./protected/commands folder.

2

There are 2 best solutions below

0
On BEST ANSWER

Put RResqueCommand.php inside protected/commands

According the yii docs:

Console commands are stored as class files under the directory specified by CConsoleApplication::commandPath.

By default, this refers to the directory protected/commands.

0
On

Put this into your config/console.php:

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