Yii Framework Forum: console command page 358 - Yii Framework Forum

Jump to content

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

console command page 358

#1 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 15 October 2011 - 03:42 PM

I think you should add there

parent::run($args);


wanted to add an action for my command... and just broke my head on how to call it...
cause "cron test" was not running actionTest.... this is because we overrite parent's run... so if we not call it no action will run...
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,780
  • Joined: 17-January 09
  • Location:Russia

Posted 17 October 2011 - 03:58 PM

Example shown in the book doesn't require call to parent. If you want to use actions it's better to avoid customizing run().
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
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