Re: [SMARTY] Fatal error: Call to undefined function: smarty_function_html_radios()

From: Date: Sat, 13 Aug 2005 12:10:33 +0000
Subject: Re: [SMARTY] Fatal error: Call to undefined function: smarty_function_html_radios()
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12959@lists.php.net to get a copy of this message
I've upgrade to Smary 2.6.10, but still have the same problem. Does anyone else ever facing this problem? Or is it only me? :-( I've followed the documentation on installing Smarty. I tried with others Custom Function such as "{assign}" and "{counter}", and gave me the similar errors. So please, give me a clue what I should do to use Smarty's Custom Function. Thanks, ~dp~ On 8/5/05, Jochem Maas <jochem@iamjochem.com> wrote: > > ~dp~ wrote: > > Thanks for replying and sorry for incomplete information about the > problem. > > yeah, and I was sloopy enough to only post you direct - > which you didn't noticer either ;-) > > > > I am using Smarty 2.6.9 > > did you upgrade? > > clear out your cache and compile dirs - then try it again. > other than that I don't see why it's breaking - everything looks ok > > maybe someone with more Smarty knowledge has an idea. > sorry I couldn't be of more help. > > > > > Here is my Smarty configuration : > > > > $this->template_dir = 'd:/php/wwwroot/mysite/smarty/templates/'; > > $this->config_dir = 'd:/php/wwwroot/mysite/smarty/configs/'; > > $this->compile_dir = 'd:/php/smarty/templates_c/'; > > $this->cache_dir = 'd:/php/smarty/cache/'; > > > > I didn't modify the value for 'plugins_dir', I just use the default one.. > > I already include the 'd:/php/smarty/' in the 'include_path' of > > php.ini > > > > Here's snippet of the cart.tpl: > > > > {html_radios name="paymentType" options=$paymentTypes > selected=$paymentType} > > > > And this is the CCart.php: > > > > $this->tpl->assign('paymentTypes', array('mandatCash' => > > 'Mandat > > Cash', 'cheque' => 'Ch&egrave;que')); > > $this->tpl->assign('paymentType', $this->userInfo->paymentType); > > > > Regards, > > ~dp~ > > > > On 8/5/05, Jochem Maas <jochem@iamjochem.com> wrote: > > > >>~dp~ wrote: > >> > >>>Hi. > >>> > >>>I am newbie in using SMARTY. From the documentation I saw that there's > >>>"html_radios" feature. So I want to try using this feature. > >>>When the first time the page is load, there's no problem. > >>>But when I try to refresh the page, I've got: > >>> > >>>Fatal error: Call to undefined function: smarty_function_html_radios() > >>>in d:\php\smarty\templates_c\%%24^241^241199A1%%cart.tpl.php on line > >>>126 > >> > >>where does the file containing that function live in your setup? > >>and what is $Smarty->plugins_dir set to? > >> > >>maybe send a snippet of cart.php (or whatever the driving script is > >>called) > >> > >> > >>>Does anyone know why it is happened? > >>> > >>>Thanks in advance > >>>~dp~ > >>> > >> > >> > >

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