'Zend Framework 2' Category

  • 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.

  • Simple Form Validator For Zend Framework 2 Forms

    October 1, 2012

    Here is some extended core , helping to auto validate Zend Framework 2 Form. Step 1. Extending Zend Framework 2 Form.

  • Adding Custom View Helper In Zend Framework 2

    September 30, 2012

    Here is example implementation of a custom view helper script. Step 1. Creating Zend Framework 2 Helper. //file : App_folder/module/Module_name/src/Module_name/View/Helper/SayHello.php namespace Application\View\Helper; use Zend\View\Helper\AbstractHelper; class SayHello extends AbstractHelper{ public function __invoke($name = 'Unnamed'){ return “$name , this is Zend Framework 2 View Helper”; } } Step 2. Registering the Zend Framework 2 Helper. //file : […]

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