Important code for magento

Some important code for magento you use and enjoying with developmentĀ 

css call in head
<link href=”<?php echo $this->getSkinUrl(‘css’)?>/style.css” rel=”stylesheet” type=”text/css” />

image call in header
<?php echo $this->getSkinUrl(‘images/logo.png’); ?>

call home page link
<?php echo $this->getUrl(”) ?>” title=”<?php echo $this->getLogoAlt() ?>

call top menu block
<?php echo $this->getChildHtml(‘topMenu’) ?>

call search block
<?php echo $this->getChildHtml(‘topSearch’) ?>

call new product in CMS page
{{block type=”catalog/product_new” name=”” alias=”product_homepage” template=”catalog/product/new.phtml”}}


Up ↑