How to add a view helper directory (zend framework)

后端 未结 5 1802
忘掉有多难
忘掉有多难 2020-12-03 16:59

I begin with ZF (1.9.7), and I want to use View Helpers from a library shared between all my projects. But I can\'t find how to add it directory to the helpers path. My herp

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 17:42

    I have written short simple tutorial for registering the zend view helpers from a common directory, which can be accessed throughout the application. Please have a look.

    http://www.mixedwaves.com/2010/03/accessing-and-using-zend-view-helpers-from-a-common-directory/

提交回复
热议问题