Hi,I have a Title but it's so long,i want to cut string with 40 character and i write a function for do it.
function cutString($name,$limit)
{
....write code
}
And in template,i want to insert $Name and $Description(two field in database) into argument of cutString function
But it's not work.
I write <% control cutString($Name,40) %><% end_control %> not work
I write $cutString($Name,40) not work
I write $cutString(Name,40) not work
I don't know how can implement function with dynamic argument in template :(