Missing include plugin???

From: Date: Sun, 28 Jul 2002 18:43:31 +0000
Subject: Missing include plugin???
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5480@lists.php.net to get a copy of this message
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.class.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

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