|
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 |
blue Smarty Rookie
Joined: 07 Aug 2003 Posts: 7
|
Posted: Thu Aug 07, 2003 2:23 pm Post subject: Get all variables from a template file |
|
|
Is it possible to read all the possible variables that you have entered in youre template file? For example i have a file called index.tpl and in the file there are two smarty variables called {$pageTitle}, {$pageContent}, is it possible to read the template in a php script en get those variables back, just the name.....so only pageTitle and pageContent |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Aug 07, 2003 2:50 pm Post subject: |
|
|
This has been discussed here. |
|
Back to top |
|
blue Smarty Rookie
Joined: 07 Aug 2003 Posts: 7
|
Posted: Thu Aug 07, 2003 3:20 pm Post subject: |
|
|
as i am a beginner in both smart and php i don't quite understand howit works.. would you please explain it to me in a simpler way?? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Aug 07, 2003 4:11 pm Post subject: |
|
|
I see. Basically, there is no way to do it without sitting down and writing some code as described in the link I posted. Perhaps if you described your intent, there is another more simple approach you can use? |
|
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
|