|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
smartymuc Smarty n00b
Joined: 25 Mar 2012 Posts: 3
|
Posted: Sun Mar 25, 2012 12:35 pm Post subject: Smarty on MAC OS 10.7 Lion with XAMPP |
|
|
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 |
|
smartymuc Smarty n00b
Joined: 25 Mar 2012 Posts: 3
|
Posted: Mon Apr 09, 2012 9:51 am Post subject: |
|
|
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 |
|
|
|
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
|