Since we will make use of Smarty3 in future hopefully, which is rewritten in OOP, PHP5 and getting better and better, there are some things to know.
Normally Serendipity plugins take the fetch method to display and parse templates via
Code: Select all
$content = $serendipity['smarty']->fetch('file:'. $tfile, null, null, false);But with Smarty3 they have changed the parameter order in the fetch method and added a new 4th parameter, to now have 5 of them. Using our code now would need a serendipity wrapper to keep this thing as it used to be. This isn't really a performance runner.
I started to rewrite my plugins to perform in both worlds without using a possible wrapper.
Now it looks like
Code: Select all
$content = $serendipity['smarty']->fetch('file:'. $tfile, null, null);Code: Select all
$content = $serendipity['smarty']->fetch('file:'. $tfile);I haven't discussed this with Garvin, but I think this is a way to go for us all and to avoid wrappers and old behaviour as much as possible for maximum efficiency. With this we don't loose compatibility between Smarty 2 and 3 users, at least in the plugins.
If this is ok for you Garvin, we could make this thread sticky and add some more of these in future.