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';

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use cURL with my account?

Yes, all of our servers have cURL enabled. The path to cURL is /usr/bin/curl .

Do you support Python?

Yes, we do. The path to Python is /usr/bin/python .

What is Perl?

Perl stands for 'Practical Extraction and Reporting Language'. Perl is a versatile programming...

What permissions should I run my Cgi scripts under?

All CGI scripts should be placed in the CGI-BIN and set to chmod 755.

Do you support installation and use of PHPBB?

We have one touch installs for XMB, PHPBB, and Invisionboard. Here are some links to some...