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