Adding custom view helper (invocable) in Zend Framework 2

October 13, 2012

Simple as that:

    //File : App_folder/module/Module_name/config/module.config.php
    //some more configs
    'view_helpers' => array(
        'invokables' => array(
            'renderForm' => 'Some_Module\View\Helper\RenderForm',

Suggestions or problems ?

Write a comment.

posted in Zend Framework 2 by Ivan Gospodinow

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /home/c2kblate/sites/ on line 1048
Powered by Wordpress and MySQL. Theme by Shlomi Noach,