|
Posted by boots on 08/13/05 23:25
Hi,
It sounds like Smarty can not find the plugins directory. I think that
either you didn't copy it over during your installation, you moved or
renamed it and didn't set your plugins_dir accordingly, or there are
inadequate permissions on the directory or plugins thereby disallowing
PHP to see them.
--- ~dp~ <dian.pitaloka@gmail.com> wrote:
> 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è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~
> > >>>
> > >>
> > >>
> >
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Navigation:
[Reply to this message]
|