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

[plugin] recursion defun | compiler.defun.php

 
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 -> Smarty 3
View previous topic :: View next topic  
Author Message
orao
Smarty Rookie


Joined: 23 Dec 2009
Posts: 20

PostPosted: Wed Dec 23, 2009 9:08 pm    Post subject: [plugin] recursion defun | compiler.defun.php Reply with quote

Hi,
I have cms written for smarty 2.6.26.
Now I changed old smarty with 3.0 Beta 5 version.
Everything works great and It's realy nice to have php5 smarty with all new functions. Well done!

There's only one thing... Recursion does not work as it did before.
I have old templates calling 'defun' function which does not work anymore.
Or I do not know how to use it Shocked

This is the plugin I'm using
lammfellpuschen.de/compiler.defun/ for older smarty.

I copied compiler.defun.php to plugins directory but no success.
Anybody got defun working with smarty3 ?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Dec 23, 2009 10:59 pm    Post subject: Reply with quote

This plugin does not work with Smarty 3 as it makes use of somer Smarty 2 internals. Smarty 3 has a complete different structure.

But this sort of functionallity is already in Smarty 3.

See the section about the {function} tag in the README.
Back to top
View user's profile Send private message
orao
Smarty Rookie


Joined: 23 Dec 2009
Posts: 20

PostPosted: Thu Dec 24, 2009 10:17 am    Post subject: Reply with quote

It works like a charm now.
Thank you very much.
Back to top
View user's profile Send private message
ChrisFah
Smarty Pro


Joined: 02 Nov 2009
Posts: 159
Location: Traun, Austria

PostPosted: Thu Dec 24, 2009 11:50 am    Post subject: Reply with quote

Sorry für off-topic, aber warum schreibt ihr beide nicht in deutsch ?
Back to top
View user's profile Send private message
orao
Smarty Rookie


Joined: 23 Dec 2009
Posts: 20

PostPosted: Thu Dec 24, 2009 12:47 pm    Post subject: Reply with quote

I think there's a bug in recursion.
Single quotes are automaticly changed into double quotes.

Check my topic regarding this bug
http://www.smarty.net/forums/viewtopic.php?t=16578
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Dec 24, 2009 1:07 pm    Post subject: Reply with quote

There is already a bugfix for that in the SVN.
Back to top
View user's profile Send private message
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 -> Smarty 3 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