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

Does anyone know of a function ?

 
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 -> Smarty Development
View previous topic :: View next topic  
Author Message
dango
Smarty n00b


Joined: 07 Jul 2004
Posts: 4

PostPosted: Wed Jul 21, 2004 1:40 pm    Post subject: Does anyone know of a function ? Reply with quote

that can return all the tokens from a template ?

e.g. if I have a template
..............................................
<html>
<title>{$content.text1}</title>
....
{$content.image}
<//html>
..............................................
Is there a function that will return the token names ?
content.text1
content.image

Thanks,
Dango.
Back to top
View user's profile Send private message MSN Messenger
nzsmarty
Smarty Rookie


Joined: 03 Jul 2004
Posts: 15
Location: New Zealand

PostPosted: Fri Jul 23, 2004 11:34 pm    Post subject: Reply with quote

array get_template_vars(string [varname]);

This returns the given assigned variable value. If no parameter is given, an array of all assigned variables is returned

Smarty Manual.

________
Honda Mb/T/X Series
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 -> Smarty Development 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