2017 © Pedro Peláez
 

library zfcomplement

Este pacote foi criado apenas para complementar Zend Framework 2

image

pedro151/zfcomplement

Este pacote foi criado apenas para complementar Zend Framework 2

  • Monday, January 19, 2015
  • by pedro151
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Zf2 ZfComplement

Zend Framework 2 - JQuery Validate

Install for composer: "pedro151/zfcomplement": "dev-master", (*1)

1) move the 'js' folder to the 'public', (*2)

2) in config/autoload/global.php insert:, (*3)

     'zf-complement' => array (
        'jquery' => array (
            'version'       => "2.1.3",                   //optional
            'ui-version'    => "1.11.2",                  //optional
            'enable'        => true,                      //optional
            'ui-enable'     => false,                     //optional
            'local-path'    => '/js/jquery/jquery.js',    //optional
            'ui-local-path' => null,                      //optional
            'ui-enable'     => false,                     //optional
            'load-ssl-path' => true,                      //optional
            'validate'      => array (
                'useTwitterBootstrap' => true,            //optional
                'validate-path'       => '/js/validate/' //optional
            )
        ),
     )

3)in module.config.php insert:, (*4)

    'view_helpers'    => array (
        'factories' => array (
            'Jquery' => function ( $sm )
            {
                return new ZfComplement\JQuery\View\Helper\Jquery($sm);
            }
        )
    ),

4) with a view/layout/layout.php enter the above code the function headScript and InlineScript, (*5)

    <?php $this->jquery()->get('validate');?>

5) use the function below the controller to enter forms in view:, (*6)

        $this->getEvent ()
             ->getViewModel ()
             ->setVariables ( array('form'=>$form) );

The Versions

19/01 2015

dev-master

9999999-dev

Este pacote foi criado apenas para complementar Zend Framework 2

  Sources   Download

The Requires

 

by Avatar pedro151