Home » Archive

Articles tagged with: template

Magento »

[7 Jan 2010 | 3 Comments | 9,197 views]

You can easily get controller name, action name, router name and module name in template file or in any class file. IN TEMPLATE FILES

Magento »

[4 Dec 2009 | 4 Comments | 5,136 views]

You can easily call any static block from template (phtml) file. At first, you have to create a static block. Let us suppose, you created a static block with the identifier cool_items.

Smarty »

[16 Jul 2008 | One Comment | 1,155 views]

In this article, I will be illustrating and explaining about foreach and section loop used in Smarty. I will be using these loops for creating a selection list.

Smarty »

[14 Jul 2008 | 2 Comments | 126 views]

You can also include other smarty template files in one smarty template. This brings the use of template function available in Smarty. You may want to make a constant header and footer for your entire website. For this purpose, you can use the ‘include’ tag. Include tags are used for including other templates in the [...]

Smarty »

[29 Jun 2008 | No Comment | 396 views]

Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases is not the same person.