Re: [SMARTY] Fatal error: Call to undefined function: smarty_function_html_radios()
| From: | Jochem Maas | Date: | Fri, 05 Aug 2005 10:17:40 +0000 |
| Subject: | Re: [SMARTY] Fatal error: Call to undefined function: smarty_function_html_radios() | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12914@lists.php.net to get a copy of this message | ||
~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.9did 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è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 126where 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~