How to Install Smarty on a Hosted Web Server

Each Web host provider has its own interface for customers, but every provider has a method of uploading files to your domain folders. To install Smarty, you upload the necessary PHP library files and use these files within your PHP code. The Smarty template interface helps you create templates and layouts for your website. Most Web host providers provide you with an upload interface you access from a Web browser.

Instructions

    • 1

      Open a Web browser and log into your host's account management console. Open the upload tool and create a file named "lib" in your folders.

    • 2

      Open a separate Web browser tab and download the necessary Smarty template files. After you download them to your local computer, use the host provider's interface to upload the files to the "lib" folder you created.

    • 3

      Add the Smarty template libraries to your PHP pages. You must add the library PHP code to all of your files that require the templates. Add the following code to the top of your PHP pages:

      require_once('/lib/Smarty.class.php');

Tips & Warnings

  • After you change the PHP code with the new Smarty template, you must upload the changed code to the host provider.

Related Searches:

References

Resources

Comments

Related Ads

Featured