Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Protected/yiic Problem

$
0
0
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.yiiframework.com/extension/phpdoc-crontab/

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>