Re: [SMARTY] Missing include plugin???
| From: | Alan T. Miller | Date: | Sun, 28 Jul 2002 20:12:45 +0000 |
| Subject: | Re: [SMARTY] Missing include plugin??? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5484@lists.php.net to get a copy of this message | ||
Gary,
Thanks for the tip. I did not have the space there for some reason...
anyway, it is fixed now.
Alan
> Did you use {include file="footer.tpl"} or
> {includefile="footer.tpl"}? you need the space there.
>
> Gary
>
> >-----Original Message-----
> >From: Alan T. Miller [mailto:amiller@hollywood101.com]
> >Sent: Sunday, July 28, 2002 1:44 PM
> >To: smarty-general@lists.php.net
> >Subject: [SMARTY] Missing include plugin???
> >
> >
> >I recently set up Smarty on my windows 2000 machine
> >running IIs (PHP 4.2.2)
> >and am trying to include a template file in one of my
> >Templates. What I am
> >trying to do is real basic, right out of the manual...
> >
> >{includefile="footer.tpl"}
> >
> >The problem is that I get the following error...
> >
> >Warning: Smarty plugin error: [in inside.tpl line 27]:
> >unknown tag -
> >'includefile="footer.tpl"' in
> >C:\Inetpub\wwwroot\somesite.com.new\includes\Smarty.clas
> >s.php on line 1923
> >
> >Now I have defined the plug directory as you can see in
> >the class I am using
> >below...
> >
> >class Smarty_Custom extends Smarty
> >{
> > var $site_name = "My Site";
> > var $email_general = "someone@somewhere.com";
> > var $email_webmaster = "webmaster@somewhere.com";
> >
> > // {{{
> > function Smarty_Custom()
> > {
> >
> > $this->template_dir =
> >'C:/Inetpub/wwwroot/somesite.com.new/Smarty/templates/';
> > $this->compile_dir =
> >'C:/Inetpub/wwwroot/somesite.com.new/Smarty/templates_c/';
> > $this->config_dir =
> >'C:/Inetpub/wwwroot/somesite.com.new/Smarty/configs/';
> > $this->cache_dir =
> >'C:/Inetpub/wwwroot/somesite.com.new/Smarty/cache/';
> > $this->plugins_dir =
> >'C:/Inetpub/wwwroot/somesite.com.new/includes/plugins/';
> >
> > $this->assign('site_name', $this->site_name);
> > $this->assign('email_general', $this->email_general);
> > $this->assign('email_webmaster',$this->email_webmaster);
> >
> > }
> > // }}}
> >}
> >
> >Overall, the most generic features of smarty work,
> >however, I cannot get the
> >include function going. Now to try and debug this, I
> >looked through this
> >mailing list and noticed people mentioned to try and
> >reinstall smarty when
> >someone else was having this problem, I did try that. I
> >have checked the
> >plugins direcetory path and that is accurate as well.
> >
> >One weird thing I noticed... I checked the plugin
> >directory and noticed that
> >there are no files with the name 'include' in them, but
> >there are files with
> >the assign and fetch methods in their title. From this
> >I can only assume one
> >of two things... the 'include' function of smarty is a
> >plugin and that
> >plugin is missing from the latest distribution online at
> >http://smarty.php.net, or it is an internal method to
> >the smarty class which
> >would lead to some other problem with my setup.
> >
> >I am really at a loss and looking for any suggestions.
> >I am getting pretty
> >frustrated. By the way, I had this same problem while
> >toying around with
> >smarty on a RedHat Box running Apache. So again, any
> >help would be
> >appreciated.
> >
> >Thanks,
> >Alan
> >
> >
> >
> >--
> >Smarty General Mailing List (http://smarty.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>