arfname
arfname

Reputation: 379

php - ./yiic rresque start does nothing

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.

Upvotes: 1

Views: 216

Answers (2)

saeedeh
saeedeh

Reputation: 353

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.

Upvotes: 1

HarryFink
HarryFink

Reputation: 1010

Put this into your config/console.php:

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

Upvotes: 0

Related Questions