top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How will you call a CMS page in your module’s PHTML file?

+4 votes
535 views
How will you call a CMS page in your module’s PHTML file?
posted Jul 6, 2016 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

Try the below code in your phtml file

 $page = Mage::getModel('cms/page')->load('home_page','identifier');
 echo $page->getContent();
answer Jul 6, 2016 by Manikandan J
0 votes

This code check if cms page is active then it will display page content

$page = Mage::getModel('cms/page')->load('top_offer','identifier');
echo $page->getIsActive()?$page->getContent():'';

answer Sep 2, 2016 by Magento_ocodewire
...