Is SMARTY a stand alone app.

Asked by:
gdmellot
Time:
2013-02-22 8:05 pm
Category:
General Server Setup
Hits:
108
I was told by a person advising my efforts at making our Website that I needed to use SMARTY to isolate the Database operating PHP code from the HTML used to display the database information to those using the Website. I'm presently working with WAMP on my laptop in developing the code. So I'm trying to be properly prepared for what the WebHub server will require. Is SMARTY available. If so how is it installed?
Sincerely, Gregory D. MELLOTT

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JacobN
2013-02-22 8:20 pm
Hello Gregory, and thanks for the great question.

Smarty is actually just a PHP templating system that doesn't require anyhting being installed on the server other than PHP.

You would extract Smarty's files into a directory on your website, and then to use the templating system include the Smarty class into your PHP script with something like this:

require('./Smarty/Smarty.class.php');

$smarty = new Smarty();


An example web application that uses Smarty is Prestashop and you can read our guide on learning about the use of Smarty in PrestaShop 1.5 for an example of how this template system is used in a PHP application.

Hope that information was helpful, if you had any other follow up questions please feel free to comment below!

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.