Skip to content

Magento: Directive Review Form & Review List

ok guys, here the directive syntax:

<?php echo Mage::app()
->getLayout()
->createBlock(‘review/product_view_list’)
->setTemplate(‘review/product/view/list.phtml’)
->toHtml();

 

echo Mage::app()
->getLayout()
->createBlock(‘review/form’)
->setTemplate(‘review/form.phtml’)
->toHtml();

?>

Share

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.