I have created cron jobs @ every 1 min to run. And I run the http://localhost/magento/cron.php. but it's not working.
My Code is:
Observer.php
<?php
class Easylife_CJobs_Model_Observer {
public function setStatus() {
Mage::log("Cron Jobs Working Fine!",null,"cronjobs");
}
}
config.xml
<?xml version="1.0"?>
<config>
<modules>
<Easylife_CJobs>
<version>0.1.0</version>
</Easylife_CJobs>
</modules>
<global>
<models>
<cjobs>
<class>Easylife_CJobs_Model</class>
</cjobs>
</models>
</global>
<crontab>
<jobs>
<cjobs>
<schedule>
<cron_expr>*/1 * * * *</cron_expr>
</schedule>
<run>
<model>Easylife_CJobs_Model_Observer::setStatus</model>
</run>
</cjobs>
</jobs>
</crontab>
</config>
Please let me know is this procedure is correct else is another procedure?