|
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 |
crwatson07 Smarty n00b
Joined: 08 Dec 2011 Posts: 2
|
Posted: Mon Jun 23, 2014 1:37 am Post subject: YouTube VideoID |
|
|
Hello...
I would like to ask if could I have the smarty code for getting the YouTube Video ID in Smarty Template? I know that I can't use PHP in Smarty Template because smarty field can't get inside of {php}{/php}.
Maybe other idea.... Can Smarty send the field to PHP page to convert or fix the field then send back to Smarty? I know that PHP can get YouTube Video ID, but I don't know if Smarty has one like php does. If you know what I am asking.. I will more appreciated for you give me link to find answer or give me the full codes then I can put them in Smarty template and Php.
Please help me.
Thank you.
Rusty |
|
Back to top |
|
epnb Smarty Rookie
Joined: 24 Sep 2014 Posts: 8
|
Posted: Wed Sep 24, 2014 10:20 am Post subject: |
|
|
Your message is missing some crucial information.
Which YouTube Video ID ?
It looks like you are not building your application from scrach and may use a PHP CMS that is using smarty ?
Basically the idea is that PHP set the variables to the smarty context. |
|
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
|