1. To Import Database using MySQL Console: (For Windows)
mysql> show databases;
mysql> USE database_name;
mysql> SOURCE C:\motorking.sql
2.call breadcrumbs in in header.
<?php echo $this->getLayout()->getBlock("breadcrumbs")->toHtml(); ?>
3.how to know calss & method name in template phtml file
<?php echo get_class($this);
exit;?>
4.Call newsletter subscriber in home page:
<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
update xml file:
<reference name="content">
<block type="newsletter/subscribe" name="home.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
mysql> show databases;
mysql> USE database_name;
mysql> SOURCE C:\motorking.sql
2.call breadcrumbs in in header.
<?php echo $this->getLayout()->getBlock("breadcrumbs")->toHtml(); ?>
3.how to know calss & method name in template phtml file
<?php echo get_class($this);
exit;?>
4.Call newsletter subscriber in home page:
<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
update xml file:
<reference name="content">
<block type="newsletter/subscribe" name="home.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
No comments:
Post a Comment