|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
willjwade Smarty n00b
Joined: 08 Jul 2004 Posts: 1
|
Posted: Thu Jul 08, 2004 3:03 pm Post subject: 2.6.3 bug with plugins |
|
|
Has something changed in the way we create custom smarty plugins now?
do this:
1. create a plugin called "function.hxml2.php" which looks like:
Code: |
<?php
function smarty_function_hxml2($params) {
return 'hello world!';
}
?>
|
2. stick in a template
3. Watch your template display
wierd - yup
now then, put a syntax error in that plugin and notice how smarty doesnt notice it - which tends to suggest its even reading that plugin - in.
hope this helps |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Jul 08, 2004 3:05 pm Post subject: |
|
|
Discussed on the smarty-dev ML, recently. I think messju fixed this in CVS (or at least, a fix is pending). Drop the "2" and you are golden. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Jul 08, 2004 3:10 pm Post subject: |
|
|
yes, that was a stupid bug. it was fixed in CVS 2004/07/01.
my suggestion: use Smarty 2.6.2 or Smarty 2.6.4-dev (= the cvs-version). |
|
Back to top |
|
spitzperl Smarty n00b
Joined: 15 Sep 2004 Posts: 1
|
Posted: Wed Sep 15, 2004 8:35 am Post subject: |
|
|
It exists still in Smarty 2.6.5! |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Sep 15, 2004 9:17 am Post subject: |
|
|
to be more precisely: it exists *again* in 2.6.5. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Sep 15, 2004 7:01 pm Post subject: |
|
|
i committed a fix. please try CVS it's just 2.6.5 + this one fixed. thanks!
messju |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|