Magento Load static block into php file -
i have created custom form loads on iframe. has send.php form custom file also. need thank message though load content static block client can change it.
how can load text static block custom php file?
thank you
try this:
require_once 'path/to/'.'mage.php'; //replace 'path/to' relative path mage.app file echo mage::app()->getlayout()->createblock('cms/block')->setblockid('some_block_id')->tohtml();
Comments
Post a Comment