Jun 25, 2013

RRB Aptitude test result Cat. No. 01, C.E.N. No. 03/2010

Hi All,

The Aptitude Test Result For Calling Candidates For Document Verification for the post of Assistant Station Master, Cat. No. 01, C.E.N. No. 03/2010 has been declared. You can download it from the below link.

To download test result. Click Here

RRB Aptitude test result of Assistant Station Master, Cat. No. 01, C.E.N. No. 03/2010

Hi All,

The Aptitude Test Result For Calling Candidates For Document Verification for the post of Assistant Station Master, Cat. No. 01, C.E.N. No. 03/2010 has been declared. You can download it from the below link.

To download test result. Click Here

Jun 20, 2013

How to run cron job on localhost in Magento

Step1: Assuming your custom module job schedule time is set <cron_expr>*/5 * * * *</cron_expr> (means cron will run job in every 5 min).

Step2: Now run the cron.php (present on root) file continuously on browser by pressing F5 button.
File path: http://localhost/projectname/cron.php

Step3: You will see the job has been executed after 5 minutes.

That's It!!! So simple... :)

Note: You can also view all jobs schedule in Magento system as follows.

Step1: Download the script from Nexcess site. Click here to download... (Thanks to Nexcess!!!)
Step2: Paste it on the root of Magento.
Step3: Now execute this file and you will get the list of job scheduled.
You should see something like this:














Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Jun 17, 2013

Magento: Save data in database model without an auto_increment primary key

By default, Magento expects the primary key with auto_increment field. But sometimes we don't need of auto increment for our primary key as per client requirement.

Save model data without auto-increment as follows:

class MyNamespace_MyCustomModule_Model_Resource_MyCustomModuleModel
    extends Mage_Core_Model_Mysql4_Abstract {
  public function _construct() {
    // Table resource, primary key
    $this->_init('mycustommodule/mycustommodulemodel', 'mycustommodule_id');
    // The primary key is not an auto_increment field
    $this->_isPkAutoIncrement = false;
  }
}

Here we just set the '_isPkAutoIncrement ' variable as 'false'.

Clear the cache before execute the file.

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/