I have created a module for cron job in magento.
I have created a Observer
public function abc()
{
//my action here
}
I have created cron job for this in config.xml file.
<crontab>
<jobs>
<Mbyte_abcd>
<schedule>
<cron_expr>* * * * *</cron_expr>
</schedule>
<run>
<model>abcd/observer::abc</model>
</run>
</Mbyte_abcd>
</jobs>
</crontab>
This is working fine for me.
Now my question is i want to run cron job for my controller.
public function cdeAction()
{
//my action here
}
- Is this possible to run cron job for controller?
- Is this possible to use to use controller method in observer?
If yes please explain how.