ravi
06-15-2006, 06:18 AM
I have a function in plugins folder in Smarty. The function file is function.getdirname.php. This function parses value in the variable as follows:
{getdirname dir = APP_IMAGE_PATH} where value of the APP_IMAGE_PATH that the function parses is "../images/"
code in html is as follows:
<script type='text/javascript' src='../images/myscript.php'></script>
I want to replace "../images" part in the above code using smarty function getdirname.
How can I do it ?
Thanks,
Ravi
{getdirname dir = APP_IMAGE_PATH} where value of the APP_IMAGE_PATH that the function parses is "../images/"
code in html is as follows:
<script type='text/javascript' src='../images/myscript.php'></script>
I want to replace "../images" part in the above code using smarty function getdirname.
How can I do it ?
Thanks,
Ravi