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

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -