Smarty 3

4 views
Skip to first unread message

mwsuman

unread,
Feb 19, 2010, 10:37:37 AM2/19/10
to zoop-users
Which version of Smarty are you using in Zoop right now? Do you have
plans to move to Smarty 3 when the final version is released?

I'm thinking about dropping it into my Zoop project right now. Do you
see there being any issues with this from the Zoop side of things?

Rick Gigger

unread,
Feb 19, 2010, 12:13:20 PM2/19/10
to zoop-...@googlegroups.com
On Feb 19, 2010, at 8:37 AM, mwsuman wrote:

> Which version of Smarty are you using in Zoop right now? Do you have
> plans to move to Smarty 3 when the final version is released?

I am definitely going to put it into Zoop when the final version is released. Maybe sooner. My plan is to update Gui so it can use multiple backends, and then allow you to configure zoop.gui.driver or something in the yaml config to determine which one you want to use. That way people can migrate up to Smarty3 when they want, but it will be easy to go back and forth.

> I'm thinking about dropping it into my Zoop project right now. Do you
> see there being any issues with this from the Zoop side of things?

They say it is mostly backwards compatible. If it is then things should be fine.

If you want to make a drop in replacement for Gui but not modify Zoop at all I would make a class that mimics this:

http://code.google.com/p/zoop/source/browse/trunk/framework/core/gui/Gui.php

but change the name to something else and have it extend Smarty3 instead of Smarty.

Then you'll want to change AppGui to extend the new Smarty3 class:

http://code.google.com/p/zoop/source/browse/trunk/stationary/basic/extend/AppGui.php

And if Smarty3 really is backwards compatible you should be good to go.

Rick

Reply all
Reply to author
Forward
0 new messages