|
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 |
gleblanc Smarty n00b
Joined: 31 Mar 2007 Posts: 2
|
Posted: Sat Mar 31, 2007 1:14 am Post subject: $SCRIPT_NAME unset |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sat Mar 31, 2007 1:15 am Post subject: |
|
|
Have you tried {$smarty.server.SCRIPT_NAME} ? It is the preferred method of accessing $SCRIPT_NAME. |
|
Back to top |
|
gleblanc Smarty n00b
Joined: 31 Mar 2007 Posts: 2
|
Posted: Sat Mar 31, 2007 12:22 pm Post subject: {$smarty.server.SCRIPT_NAME} worked |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
|
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
|