PHP CODE:
function show_playlist_form($array)
{
global $cbvid;
assign('params',$array);
$playlists = $cbvid->action->get_channel_playlists($array);
assign('playlists',$playlists);
Template('blocks/playlist_form.html');
}
HTML CODE (SMARTY INSIDE):
<html><head></head>
<body>
{show_playlist_form}
</body>
</html>
This all can be found in clip-bucket video script. The html code calls the php function, where it shows playlist_form.html. However, I'm interested in adding an integer value in the smarty defined tag show_playlist_form so that it would pass it to the function in php show_playlist_form($array) and then the function would assign the integer into $array.
I tried, assuming I'm interested in passing the integer 1:
{show_playlist_form(1)}
Fatal error: Smarty error: [in /home/george/public_html/styles/george/layout/view_channel.html line 4]: syntax error: unrecognized tag: show_playlist_form(1) (Template_Compiler.class.php, line 447) in /home/george/public_html/includes/templatelib/Template.class.php on line 1095
{show_playlist_form array='1'}
The html code worked but it I got nothing (blank).
So, it didn't work, what can I do? I need to pass integer values to the function.