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

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

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 installation and use of PHPBB?

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

Do you support Python?

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

Does WHW support PHP HTTP Authorization?

We do support the PHP HTTP Authorization and in order to enable it you need to add the following...

How do I install the CGI scripts generated?

You basically need a few things before you can get started: You will need a web host that...