(solved) Smarty vars to PHP? Confused (very)
Posted: Sat Mar 22, 2008 9:38 am
Hi,
I'm trying to do something VERY simple here and I'm falling at the first hurdle it seems!
I have this in a template:
Reserve Request
So this just attaches the smarty variable for the displayed calendar event. This works ok. I also saw how I could use CMS selflink from a post by Calguy1000 to do the same.
But I now need to get the var from the url and retrieve parts of the event record. I can do this to do this:
ID={$smarty.get.performanceID}
This works too. So I've got the ID of the event I'm after but now I'd like to pass that eventID var to PHP so I can do more stuff within UDT's. This is where I'm lost. I've read some of the smarty manual and it mentions how to pass PHP vars to Smarty but not the other way i.e. from Smarty to PHP.
I think (I know) I'm missing something simple here. Can anyone help?
Sarah
I'm trying to do something VERY simple here and I'm falling at the first hurdle it seems!
I have this in a template:
Reserve Request
So this just attaches the smarty variable for the displayed calendar event. This works ok. I also saw how I could use CMS selflink from a post by Calguy1000 to do the same.
But I now need to get the var from the url and retrieve parts of the event record. I can do this to do this:
ID={$smarty.get.performanceID}
This works too. So I've got the ID of the event I'm after but now I'd like to pass that eventID var to PHP so I can do more stuff within UDT's. This is where I'm lost. I've read some of the smarty manual and it mentions how to pass PHP vars to Smarty but not the other way i.e. from Smarty to PHP.
I think (I know) I'm missing something simple here. Can anyone help?
Sarah