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.

tags:
posted in Zend Framework 2 by Ivan Gospodinow

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

Leave Your Comment

 
 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org