Home » Archive

Articles tagged with: Smarty

PEAR, Smarty »

[21 Jul 2008 | 2 Comments]

For uploading files, you need to install a package of PEAR called ‘HTTP_Upload’ along with the installation of PEAR and Smarty.
HTTP_Upload is used for easy and secure managment of files submitted via HTML forms. This package provides an advanced system for managing uploads of files via HTML input type “file” fields.

PEAR, Smarty »

[20 Jul 2008 | 5 Comments]

First of all, you need to install PEAR in your web server. Then you need to install Smarty.
After that, you need to install a package in PEAR. It’s called ‘Pager’.

PEAR, Smarty »

[18 Jul 2008 | One Comment]

For using database, you need to install a package of PEAR called ‘MDB2’ along with the installation of PEAR and Smarty.
MDB2 provides a common API for all support RDBMS.

Smarty »

[16 Jul 2008 | One Comment]

In this article, I will be explaining about foreach and section loop used in Smarty. I will be using these loops for creating a selection list.
We can create selection list from a custom Smarty function html_options.

Smarty »

[14 Jul 2008 | 2 Comments]

In previous article, I had written about installing and using Smarty. In this article, I will be showing how you can include header and footer in Smarty.
index.php assigns contents and calls the template file index.tpl

Smarty »

[11 Jul 2008 | 4 Comments]

In this article, I will be introducing how to use Smarty Template engine. This is a beginner tutorial.
First of all, you need to download Smarty from http://www.smarty.net/download. You can follow a quickstart guide from here as well: http://www.smarty.net/quick_install. My approach of coding is a bit different than the quickstart guide present on smarty website.