Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
smarty on mac 10.7.4

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
hamad2
Smarty n00b


Joined: 31 Jul 2012
Posts: 4

PostPosted: Tue Jul 31, 2012 8:36 am    Post subject: smarty on mac 10.7.4 Reply with quote

I can't run smarty under mac 10.7.4 I am using mamp.

I am using this
Code:
define('SITE_URL', "http://".$_SERVER['SERVER_NAME']."test");

how to use site url as local host.

Regards
Back to top
View user's profile Send private message
ChrisFah
Smarty Pro


Joined: 02 Nov 2009
Posts: 157
Location: Traun, Austria

PostPosted: Tue Jul 31, 2012 12:20 pm    Post subject: Reply with quote

Hi,
try using this:
Code:

define('SITE_URL', "http://".$_SERVER['HTTP_HOST']."/test");


Regards, Chris
Back to top
View user's profile Send private message
hamad2
Smarty n00b


Joined: 31 Jul 2012
Posts: 4

PostPosted: Tue Jul 31, 2012 7:24 pm    Post subject: Reply with quote

ChrisFah:: many thanks but I am still facing the same problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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