Thursday, October 15, 2015

Redirect to CMS page from phtml file

<?php echo $this->getUrl('privacy-policy'); ?>
privacy-policy is the url-key of your cms page

or
<?php echo Mage::helper('cms/page')->getPageUrl('url_key') ?>


No comments:

Post a Comment

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method... magento 2

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining met...