|
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 |
tacker Smarty Rookie
Joined: 12 Jan 2004 Posts: 8 Location: Germany
|
Posted: Mon Jan 12, 2004 8:51 am Post subject: [solved] $smarty.get.page empty (Bug?) |
|
|
Wll I'm not sure if this is a bug.
Search on this Forum returned nothing so I'll open a new Thread.
Code: | {$smarty.get.page}
http://smarty.php.net/manual/en/language.variables.smarty.request.php |
produces nothing with Smarty 2.6.0 although all othe $smarty.*-Vars work
the way they're expected to to.
Debuger says nothing.
Any ideas?
Last edited by tacker on Mon Jan 12, 2004 9:30 am; edited 1 time in total |
|
Back to top |
|
Gerald Smarty Regular
Joined: 26 Nov 2003 Posts: 53 Location: Lyon [France]
|
Posted: Mon Jan 12, 2004 9:23 am Post subject: |
|
|
just to be sure......
we agree that 'page' is supposed to be the varname you're trying to reach in the "GET" associative array ?
eg, you want to get index.php?page=X
you do {$smarty.get.page}
you want to get index.php?foo=x
you do {$smarty.get.foo}
in other words
$smarty.get.something is an alias of $_GET['something'] |
|
Back to top |
|
tacker Smarty Rookie
Joined: 12 Jan 2004 Posts: 8 Location: Germany
|
Posted: Mon Jan 12, 2004 9:30 am Post subject: |
|
|
*omfg*
Sorry but you're right, of course.
In search of a solution for my problem I totally ignored the well known behaviour
of $smarty.get.
I am totally ashamed...
What I was searching for ist a variable that holds the full page URL
including GET Parameters. |
|
Back to top |
|
machnhed1 Smarty Regular
Joined: 21 Apr 2003 Posts: 39 Location: Illinois
|
Posted: Tue Feb 03, 2004 10:01 pm Post subject: |
|
|
tacker wrote: | What I was searching for ist a variable that holds the full page URL
including GET Parameters. |
I too am looking to do this, did you find it?
Thanks _________________ "Every operating system out there is about equal in the number of vulnerabilities reported. We all suck."
- Microsoft Senior Vice President Brian Valentine |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Tue Feb 03, 2004 11:47 pm Post subject: |
|
|
Using $smarty.server.SERVER_NAME along with $smarty.server.REQUEST_URI should yeild the entire url minus the http part. _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
Back to top |
|
machnhed1 Smarty Regular
Joined: 21 Apr 2003 Posts: 39 Location: Illinois
|
Posted: Tue Feb 03, 2004 11:57 pm Post subject: |
|
|
Nice. Thank you. _________________ "Every operating system out there is about equal in the number of vulnerabilities reported. We all suck."
- Microsoft Senior Vice President Brian Valentine |
|
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
|