Re: [SMARTY] need help with executing own function

From: Date: Tue, 18 Jan 2005 14:47:16 +0000
Subject: Re: [SMARTY] need help with executing own function
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12168@lists.php.net to get a copy of this message
>May be the best way is to make translation of car type at >PHP-side? thanks ON.KG. yup that can surely fix it.. but $car come from a db query result.. much like a listing. there must be a better way. >two way >http://smarty.php.net/manual/en/language.builtin.functions.php > >or you writting your pluggin > >http://smarty.php.net/manual/en/plugins.writing.php thanks Jean-Michel Juzan. this is more likely.. but i'm wondering where it should go to.. is it prefilter, postfilter or output filter? i've tried but it doesnt work either. i think i got it wrong somewhere. here is what i did.. 1)i've created (prefilter|postfilter|outputfilter).myfunction.php in SMARTY_DIR\plugins 2) what i understand from reading the manual was that i dont have to do anything else.. smarty is smart enuff to detect my function.. but it didnt work.. so i even included it in the template like this {include_php file="../includes/functions.inc.php"} but still i cant make it work.. *sigh* anybody can point me where i messed up? -- When you signup for PayPal, you can start accepting credit card payments instantly. As the world's number one online payment service, PayPal is the fastest way to open your doors to over 40 million member accounts worldwide. Best of all, it's completely free to sign up! To sign up or learn more, click here: https://www.paypal.com/row/mrb/pal=ET694X3JAP9X2

« previous php.smarty.general (#12168) next »