Knowledge Base Article

How to install Smarty Template Engine

Follow the steps below to install Smarty Template Engine on your hosting account:

  • Download the latest version from the official website.
  • Extract the package on your computer.
  • Upload the libs folder to your hosting account (for example in the public_html folder)
  • Create a php.ini file and add the following line to it:

include_path = /home/username/public_html/libs/

 

This line defines the include path to the libraries. Change username with your actual cPanel username.

 

Now all you need to do to call the Smarty Template Engine is to include it in your php files with a line such as.:

 

require '/home/username/public_html/libs/Smarty.class.php';



Rating

Please indicate if this article was helpful for you.

rating :  4.7 from 5
views :  308
votes :  3

Related Articles

Views

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!