Re: [SMARTY] Plugin problem
| From: | Monte Ohrt | Date: | Fri, 03 Nov 2006 15:38:22 +0000 |
| Subject: | Re: [SMARTY] Plugin problem | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13548@lists.php.net to get a copy of this message | ||
What is the name of the plugin file, and what is the content? Do you have one plugin directory, or multiple?
Erich C. Beyrent wrote:
That's how it appears to me, but I'm not sure why that is happening, or how to fix it. -Erich- Dean Ariel wrote:Maybe it's not including the plugins when it's compiled ?? Dean On 11/3/06, Erich C. Beyrent <erich.beyrent@beyrent.net> wrote:Erich C. Beyrent wrote:Jochem Maas wrote:the function is not being loaded. what I do is stick all my custom smarty plugins in a directory and then add that directory to thegiving meI have written a plugin called html_select_date2, and it iscalled andsome trouble. The first time the page loads, the function isget this:everything works smashingly. However, if I refresh the page, I*/public_html/php/templates_c/%%24^24D^24D5865F%%default.form.tpl.php** Fatal error*: Call to undefined function: smarty_function_html_select_date2() inon line *97 *Is this a permissions problem, or is something else going on here?plugin dirs - that way Smarty will always be able to find/loadlist ofyour pluginsLOL In the Why Use Smarty page, it says: "Adding custom features to Smarty is as easy as dropping them in the plugin directory and mentioning them in the template." So that's exactly what I did. What I don't understand is why the plugin works fine the first time the page loads, but fails when you refresh the browser. Why does it get loaded the first time, but not from the compiled template? -Erich- -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php