How to check Magento Version?

Some time you don’t know you are working on which version of magento. So if you want to see the version of magento using code follow below steps.

Step 1 : create one checkversion.php file in root directory of your magento project.

Step 2 : Now copy and paste the below code.

<?php
include_once(‘app/Mage.php’);
Mage::app();
echo Mage::getVersion();
?>

Where,

When you include Mage.php you are ready to access all core classes of magento.

The Mage::app() function is used to bootstrap your Magento application (setting up configuration, autoloading etc) and is useful when wanting to access Magento models in your own custom script for example.

Advertisements

Leave your comments

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s