Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • See the headScript() view helper -> framework.zend.com/manual/2.1/en/modules/… Commented Mar 22, 2013 at 19:02
  • Yes, I saw this... and I understand how it works in the layout, but what about adding scripts or styles to specific views? Is there a method available in the action? Should I just repeat this in the view? The documentation is not very clear. Commented Mar 22, 2013 at 19:05
  • Yes, the helper is available in views and layouts, I think the only caveat may be that you need to use prepend in views, but ymmv. Commented Mar 22, 2013 at 19:08