You are here: Re: [SMARTY] Fatal error: Call to undefined function: smarty_function_html_radios() « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Fatal error: Call to undefined function: smarty_function_html_radios()

Posted by Jochem Maas on 08/05/05 13:17

~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è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~
>>>
>>
>>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация