Zend Framework

Allow multiple helperpaths with config for Zend_View

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Application
  • Labels:
    None

Description

<Freeaqingme> DASPRiD, am I right when saying that I can't set helper paths by using config files only?
....
<Freeaqingme> but atm I cannot set the helperpaths through a ini config?
<DASPRiD> lemme lookup it quickly
<DASPRiD> Freeaqingme, resources.view.helperpath = "Zym_View_Helper"
<DASPRiD> it just supports a single helper path there
<DASPRiD> also
<Freeaqingme> but, that doesn't allow me to add more than one path?
<DASPRiD> Freeaqingme, resources.view.helperpathprefix = "Zym_View_Helper"
<DASPRiD> Freeaqingme, resources.view.helperpath = "Zym/View/Helper"
<DASPRiD> or such
<Freeaqingme> I c
<Freeaqingme> but that is only for one helper, it doesn't support multiple I guess?
<DASPRiD> according to the zend_view_abstract constructor, nope
<DASPRiD> you may tacle matthew
<Freeaqingme> so that resource would need to get patched a bit?
<DASPRiD> to make it support multiple paths
<DASPRiD> not the resource
<DASPRiD> but zend_view
<Freeaqingme> why not the resource?
<DASPRiD> because its not part of the resource to do so
<DASPRiD> it should just pass the options to zend_view
<DASPRiD> and zend_view should then handle it
<DASPRiD> it should only get in the resource, when it would be a bc break for zend_view
<DASPRiD> but it wouldnt :)
<DASPRiD> create a sub-task, i c if i can create a patch for it today

Activity

Hide
Matthew Weier O'Phinney added a comment -

Support has been added to Zend_VIew's constructor to allow this now as of r14965. You can now pass view helper paths and filter paths as follows:

resources.view.helperPath.Zym_View_Helper = "Zym/View/Helper"
resources.view.filterPath.Zym_View_Filter = "Zym/View/Filter"

and, of course, add additional prefix/path combinations.

Show
Matthew Weier O'Phinney added a comment - Support has been added to Zend_VIew's constructor to allow this now as of r14965. You can now pass view helper paths and filter paths as follows:
resources.view.helperPath.Zym_View_Helper = "Zym/View/Helper"
resources.view.filterPath.Zym_View_Filter = "Zym/View/Filter"
and, of course, add additional prefix/path combinations.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: