Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/07/2011, 13:47
aluckyar
 
Fecha de Ingreso: junio-2011
Ubicación: Granada
Mensajes: 19
Antigüedad: 12 años, 10 meses
Puntos: 0
Pregunta Problemas con ZendX_JQuery y mi propio Zend_View_Helper_Abstract

Buenas a todos.

Estoy empezando a integrar ZendX_JQuery en mi aplicación Zend y todo funciona correctamente pero he intentado añadir un "accordion" en un Zend_View_Helper_Abstract que tengo para el menu lateral y no hay manera.

Mi Layout.phtml
Código PHP:
<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" collation>
    <head>
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headTitle(); ?>
        <?php echo $this->headLink()->prependStylesheet($this->baseUrl()."/css/estilo.css")."\n"?>
>
        <?php
            
if($this->jQuery()->isEnabled()){
                
$jQuery=$this->jQuery();
                
$jQuery->setLocalPath($this->baseUrl()."/js/jquery.js"); 
                
$jQuery->setUiLocalPath($this->baseUrl()."/js/jquery-ui.js");
                
$jQuery->addStyleSheet($this->baseUrl()."/css/jquery-ui-1.8.14.custom.css");
                echo 
$jQuery;
            }
        
?>
    </head>
    <body>
        <?php echo $this->menuLateral(); ?>
        <?php echo $this->menuSuperior(); ?>
        
        <div id="content" class="content">
            <h1><?php echo $this->escape($this->title); ?></h1>
            <?php echo $this->layout()->content?>
        </div>
    </body>
</html>

Mi MenuLateral.php
Código PHP:
<?php
class Default_View_Helper_MenuLateral extends Zend_View_Helper_Abstract {
    public function 
menuLateral(){        
        
$menu="<div id='menulateral' class='menulateral'>";
        
$menu.=$this->view->accordionPane('menu''menu1', array('title' => 'menu1'));
        
$menu.=$this->view->accordionPane('menu''menu2', array('title' => 'menu2'));
        
$menu.=$this->view->accordionContainer('menu', array('active' => 'none''collapsible' => 'true'));
        
$menu.="</div>";
        return 
$menu;
    }
}
?>
Esto mismo lo hago en cualquier vista "prueba.phtml"(por poner un ejemplo) y funciona a la perfección.

¿Tiene alguien alguna idea de que puedo estar haciendo mal?