Yii Framework Forum: Protected/yiic Problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Protected/yiic Problem yiic in protected folder dont show available commands Rate Topic: -----

#1 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 207
  • Joined: 16-January 12

Posted 19 December 2012 - 06:06 PM

hi , it's my first aproach to cron jobs.
My problem is that i want to test a command in console with yiic from application and it runs yiic fro framework.

php ./yiic.php
is the only way it runs but i have
The following commands are available:
 - message
 - migrate
 - shell
 - webapp


and i need to see
The following commands are available:
-test


command
class TestCommand extends CConsoleCommand {

    /**
     * @cron 2 * * * *
     */
    public function actionExample1() {

        $reader = Reserva::model()->findAll();
        foreach ($reader as $row) {
            $row->reserva_state = 4;
            $row->save(false);
            
        }
    }

}


by the way i'musing http://www.yiiframew...phpdoc-crontab/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users