<?php
echo $_SESSION[‘core’][‘last_url’];
?>
<?php
echo $_SESSION[‘core’][‘last_url’];
?>
<?php
echo Mage::helper(‘checkout/cart’)->getSummaryCount();
?>
# apt-get install unrar
GRANT SELECT,INSERT,UPDATE,DELETE ON database_name.table_name TO ‘USER’@’HOSTNAME’;
<?php
preg_match(‘/MSIE (.*?);/’, $_SERVER[‘HTTP_USER_AGENT’], $matches);
echo $version = $matches[1];
?>
<script type=”text/javascript”>
jQuery(function($){
if(jQuery(‘.nivoSlider’).find(‘img’).length>1){
$(‘#slider’).nivoSlider({
effect: ‘fade’ // Specify sets like: ‘fold,fade,sliceDown’
});
}
});
</script>
{{block type=”core/template” name=”list-categories” template=”catalog/category/newPage.phtml”}}
IN PHTML PAGE
==============
SECURE SKIN URL -<?php echo $this->getSkinUrl(‘images/ sampleimage.gif’, array(‘_secure’=>true)) ?>
CRRENT URL – Mage::helper(‘core/url’)->getCurrentUrl();
HOME URL – Mage::helper(‘core/url’)->getHomeUrl();
MEDIA URL – Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
SKIN URL – Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
STORE URL – Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
JS URL – Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
NON SECURE SKIN URL – <?php echo $this->getSkinUrl(‘images/sampleimage.jpg’) ?>
IN STATIC BLOCK
================
BASE URL -{{base url=’yourstore/mypage.html’}}
MEDIA URL – {{media url=’/sampleimage.jpg’}}
SKIN URL – {{skin url=’images/sampleimage.jpg ‘}}
STORE URL – {{store url=’mypage.html’}}
<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘block_id’)->toHtml() ?>