Yes, y're off base.
What you write about a lot of work is totally true, compared to regular
jquery work.
However, once you have good integration, reuse is easy and constistent.
Consistency will make your life easier in the end.
If you want it real easy, use Zend_Dojo instead of JQuery. But keep in
mind that Zend_Dojo will have to mature a little. Not everything
advanced works a nicely as you would expect. Same is true for ZendX by
the way.
Bart
sprynmr schreef:
I'm still learning more about the javascript integration through the jquery
xtra shipped with 1.7, but when I look at all the hoops you have to jump
through to do some basic things with javascript in the "Zend" way... I just
get the feeling its more trouble than its worth.
The jquery plugin viewhelpers are nice... but do I really want my javascript
that tied in to my php? And for that matter do I want to write a new view
helper for every jquery plugin I develop (or use?) It seems like its
handicapping you a little bit, or at the very least forcing you to do quite
a bit of extra work to do anything advanced.
I think I might go the way of dynamic javascript includes... where
controllers not only automatically render their associated view (via name
matching), but also include their associated javascript. This would be great
for javascript instantiation. Then you could also have a library of reusable
js that can be dynamically included via the various classes you use in your
view (identified by their matching name).
It really seems this jquery/zend integration is quite the opposite of the
jquery motto... write less, do more.
Am I totally off base?
Robert