/ Published in: PHP
Call the snippet above in youre Code via:
{{block type="core/template" name="test-snippet" template="catalog/snippets/test-snippet.phtml"}}
Expand |
Embed | Plain Text
// make file: /app/design/frontend/YOUR-THEME/YOUR-TEMPLATE/template/catalog/snippets/test-snippet.phtml // call the above file in another phtml: <?php echo $this->getLayout()->createBlock('catalog/snippets_test-snippet')->setTemplate('catalog/snippets/test-snippet.phtml')->toHtml(); ?>
You need to login to post a comment.
