|
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 |
mfurdyk Smarty n00b
Joined: 26 Apr 2003 Posts: 3
|
Posted: Sat Apr 26, 2003 6:39 pm Post subject: include_php files accessing template variables |
|
|
Is this possible? How can a PHP file I include in my template access template variables? |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Sat Apr 26, 2003 6:51 pm Post subject: |
|
|
use the variable $this is the php file and the method below
http://smarty.php.net/manual/en/api.get.template.vars.php _________________ "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 |
|
mfurdyk Smarty n00b
Joined: 26 Apr 2003 Posts: 3
|
Posted: Sat Apr 26, 2003 9:15 pm Post subject: |
|
|
thanks -- my bad for not rtfming well enough before posting! |
|
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
|