Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

[solved] $smarty.get.page empty (Bug?)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
tacker
Smarty Rookie


Joined: 12 Jan 2004
Posts: 8
Location: Germany

PostPosted: Mon Jan 12, 2004 8:51 am    Post subject: [solved] $smarty.get.page empty (Bug?) Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Gerald
Smarty Regular


Joined: 26 Nov 2003
Posts: 53
Location: Lyon [France]

PostPosted: Mon Jan 12, 2004 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
tacker
Smarty Rookie


Joined: 12 Jan 2004
Posts: 8
Location: Germany

PostPosted: Mon Jan 12, 2004 9:30 am    Post subject: Reply with quote

*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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
machnhed1
Smarty Regular


Joined: 21 Apr 2003
Posts: 39
Location: Illinois

PostPosted: Tue Feb 03, 2004 10:01 pm    Post subject: Reply with quote

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 Exclamation
_________________
"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
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Tue Feb 03, 2004 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
machnhed1
Smarty Regular


Joined: 21 Apr 2003
Posts: 39
Location: Illinois

PostPosted: Tue Feb 03, 2004 11:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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