Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

$SCRIPT_NAME unset

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
gleblanc
Smarty n00b


Joined: 31 Mar 2007
Posts: 2

PostPosted: Sat Mar 31, 2007 1:14 am    Post subject: $SCRIPT_NAME unset Reply with quote

I am trying to create a form that posts back to itself. When I try to use $SCRIPT_NAME in the template, it is not set. I have made a class that creates a form from any sql query, but i can't get the action set.

Any help would be appreciated

Thanks,
George
Back to top
View user's profile Send private message Send e-mail
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sat Mar 31, 2007 1:15 am    Post subject: Reply with quote

Have you tried {$smarty.server.SCRIPT_NAME} ? It is the preferred method of accessing $SCRIPT_NAME.
Back to top
View user's profile Send private message
gleblanc
Smarty n00b


Joined: 31 Mar 2007
Posts: 2

PostPosted: Sat Mar 31, 2007 12:22 pm    Post subject: {$smarty.server.SCRIPT_NAME} worked Reply with quote

Thanks, that worked. Is there a comprehensive reference guide for smarty? The one on the smarty site, while very useful, does not seem to tell me all of the possible variables, etc
Back to top
View user's profile Send private message Send e-mail
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sat Mar 31, 2007 9:33 pm    Post subject: Reply with quote

The manual tells all: http://smarty.php.net/manual/en/language.variables.smarty.php
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General 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