PHPackages                             pedro151/zfcomplement - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. pedro151/zfcomplement

ActiveLibrary[Framework](/categories/framework)

pedro151/zfcomplement
=====================

Este pacote foi criado apenas para complementar Zend Framework 2

161PHP

Since Jan 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/pedro151/zfcomplement)[ Packagist](https://packagist.org/packages/pedro151/zfcomplement)[ RSS](/packages/pedro151-zfcomplement/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Zf2 ZfComplement
================

[](#zf2-zfcomplement)

Zend Framework 2 - JQuery Validate
==================================

[](#zend-framework-2---jquery-validate)

Install for composer: "pedro151/zfcomplement": "dev-master"

1. move the 'js' folder to the 'public'
2. in `config/autoload/global.php` insert:

```
     '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:

```
    '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`

```
