Is SMARTY a stand alone app.

Asked by:
gdmellot / 16 Points
Time:
2013-02-22 4:05 pm EST
Category:
General Server Setup
Hits:
333
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

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

JacobN
Staff
3,661 Points
2013-02-22 4:20 pm EST
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

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help 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.