2008年7月30日星期三

[fw-mvc] Just another Smarty View

Hello,

this is my first post to this list.
I recently discovered ZF and I've been looking into it for some weeks
now and I'm really happy with it so far.

Just out of my own interest I wrote/copy/pasted a Smarty View
implementation together and enhanced it by giving it access to view
helpers via Smarty plugins.
I think the Syntax is really nice, e.g. the URL helper:

<a href="{url controller=index action=edit id=$movie.id}">Edit</a>

And there are some more, if you want to take a look at it, I wrote a
small tut and have the code available for download at:
http://propaganda.io/tutorials/
Would really like to hear your feedback on it.


There is one open thing i will have to get into: When using the
action helper plugin, somehow the view doesn't get cloned properly,
so I loose all the data after calling an action helper.
Haven't had the time to look into it yet, maybe someone here has an
idea.

bye,
Murphy

没有评论: