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


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