ZF-5840: [2.0] Remove action-view-helper

Issue Type: Improvement Created: 2009-02-19T08:13:41.000+0000 Last Updated: 2012-02-24T22:35:35.000+0000 Status: Closed Fix version(s): Reporter: Ben Scholzen (dasprid) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_View

Related issues: - ZF-8170



The action view helper is mostly used totally wrong (I never knew any actual use-case for it). Instead of using view helpers or models, people start to use actions as reusable units. If there's actually a use-case for the action view helper, it should be mentioned in the documentation, for what it actually is for, else I'd suggest to remove it (in 2.0, to keep BC before), and probably yet mark it as deprecated (see ZF-8170).


Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-02-19T08:26:18.000+0000

Though it fits perfectly in the use-at-will spirit of ZF, I do think that it costs way too much resources (as I recall right, it does an entire dispatch..), and asks for bad design. Therefore, let's get rid of it :D

Posted by julien PAULI (doctorrock83) on 2009-02-20T00:52:50.000+0000

I agree. We should still be able to use that helper if we want to. Anyway, regarding the performance problem, it is specified in the official doc, in the performance chapter, so anyone should know about it.

Posted by Corey Frang (gnarf) on 2009-05-28T11:42:23.000+0000

I decided to use it for a "tabbed menu". Each of the tabs was originally developed as its own action, but then I wrote another page that just calls the individual actions.

Posted by Ben Scholzen (dasprid) on 2009-05-28T12:55:43.000+0000

Uhm, do you know Zend_Navigation, Corey?

Posted by Corey Frang (gnarf) on 2009-05-28T17:40:03.000+0000

That still doesn't actually render the content of all the tabs to the HTML (which is what I intend to do - using jQuery to tabSwitch) I suppose a partial view helper would work as well, but some of these actions build up forms, etc. for editing - Perhaps the Action is not the place to build the form?

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-05-28T17:43:18.000+0000

It probably isn't. Would you mind moving this discussion to a mailinglist, forum, or irc?

Posted by Thorsten Ruf (saphir2k) on 2009-06-30T00:28:07.000+0000

In my opinion, Dolf is right. Move this discussion to the mailinglist.

Personaly i avoid using the action view helper, because of the very big dispatch overhead. Better remove it and talk about a smaller and faster solution. Just my two cents.

There are a lot of discussions in Blogs, Forums and Chats with the topic "reusable content" or "widget problem". Every discussion leads to a "new" solution. I'am wondering a lot that the manual is missing this important topic.

Hopefully we will see a clear solution in 2.0. :-)

Posted by Adam Lundrigan (adamlundrigan) on 2011-11-17T02:27:19.000+0000

Is there any reason to keep this issue open?

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-24T22:35:35.000+0000

I'll take that as a no ;)

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.