Articles tagged with: Smarty
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.
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’.
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.
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.
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
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.