Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

2.6.3 bug with plugins

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
willjwade
Smarty n00b


Joined: 08 Jul 2004
Posts: 1

PostPosted: Thu Jul 08, 2004 3:03 pm    Post subject: 2.6.3 bug with plugins Reply with quote

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
Code:

{hxml2}

3. Watch your template display
Code:

hxml2


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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Jul 08, 2004 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Thu Jul 08, 2004 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
spitzperl
Smarty n00b


Joined: 15 Sep 2004
Posts: 1

PostPosted: Wed Sep 15, 2004 8:35 am    Post subject: Reply with quote

It exists still in Smarty 2.6.5!
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Sep 15, 2004 9:17 am    Post subject: Reply with quote

to be more precisely: it exists *again* in 2.6.5.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Sep 15, 2004 7:01 pm    Post subject: Reply with quote

i committed a fix. please try CVS it's just 2.6.5 + this one fixed. thanks!

messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP