Ver Mensaje Individual
  #9 (permalink)  
Antiguo 25/04/2013, 10:48
mandygr87
 
Fecha de Ingreso: abril-2013
Mensajes: 82
Antigüedad: 11 años
Puntos: 0
Respuesta: jquery en formulario

Lo he solucionado.

He puesto en Bootstrap:

Código:
protected function _initViewHelpers()
{
    $this->bootstrap('view');
    $view = $this->getResource('view');
    $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
      
}
En application.ini


Código:
pluginPaths.ZendX_Application_Resource = "ZendX/Application/Resource"
resources.jquery.version = 1.9.1
resources.jquery.ui_enable = true
resources.jquery.ui_version = 1.8.4
resources.jquery.stylesheet = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css"
y en mi layout:

Código:
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/javascript/jquery/jquery-1.9.1.min.js"></script>
        <?php
    //para jquery
    echo $this->jQuery()->enable()->setLocalPath($this->baseUrl() . '/js/jquery.js')

    ?>

        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css" type="text/css" media="screen" />

        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>

        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
No sé si me hará falta todo, pero de esta manera ya me funciona...