Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty on MAC OS 10.7 Lion with XAMPP

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
smartymuc
Smarty n00b


Joined: 25 Mar 2012
Posts: 3

PostPosted: Sun Mar 25, 2012 12:35 pm    Post subject: Smarty on MAC OS 10.7 Lion with XAMPP Reply with quote

Hi there,

I am new to Smarty and want to install it locally to my Mac running MAC OS 10.7 Lion and XAMPP.

How do I install the Smarty engine to run on the local (!) XAMPP-server, so I am able to use it for local development and coding.

Hoping to receive a reply soon (I am hot for testing Smarty).

Cheers!
Peter
Back to top
View user's profile Send private message
smartymuc
Smarty n00b


Joined: 25 Mar 2012
Posts: 3

PostPosted: Mon Apr 09, 2012 9:51 am    Post subject: Reply with quote

In the end it turned out to be sooooooo easy:

Download the Smarty from Smarty-website.

On your Mac go to the Websites-directory underneath your login-name.

Now I created a directory "libs" and copied the downloaded "smarty"-directory to that "libs".

Now copy the "guestbook"-dir of the smarty-sample-app (http://www.smarty.net/sampleapp1) to a directory underneth the Website-directory, so you will have these contents:

{username}/websites/smarty
{username}/websites/guestbook

In guestbook open index.php.

Change the pointer to the smarty-directory:

// define smarty lib directory
define('SMARTY_DIR', '/usr/local/lib/php/Smarty/');

to

define('SMARTY_DIR', '../libs/smarty/');

That's it!

Easy.

Have fun!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP