Jump to content



Member Since 02 Oct 2010
Offline Last Active Jan 25 2014 05:34 AM

Topics I've Started

How to call a plug-in function from template

14 November 2013 - 06:45 AM

Hello verybody,
I am using version 4.
I write a function, named function.myfunc.php and saved in /app/functions/smarty_plugins folder, also to this folder /app/lib/other/smarty/plugins

function smarty_function_myfunc($params, &$smarty) {
// my function code

And in the template .tpl file, I call this function {myfunc}

Then clear the cache (admin.php?cc as well as delete the cache folder) then reload the page but it will return the blank page. Please help me how to call my own function from template file

Thank you