I have created a custom form that loads on an iframe. It also has the send.php form which is a custom file also. I need as a thank you message though to load the content from a static block so client can change it.
How can I load the text from the static block into a custom php file?
Thank you
Try this:
require_once 'path/to/'.'Mage.php'; //replace 'path/to' with the relative path to your Mage.app file
echo Mage::app()->getLayout()->createBlock('cms/block')->setBlockId('some_block_id')->toHtml();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With