cassiombc 0 Denunciar post Postado Setembro 11, 2012 Galera, estou com uma grande dúvida como utilizo as funções do jquery no framework zend. ja consegui apontar onde estao os arquivos .js mas não sei como ultilizar as funções. Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 11, 2012 http://lmgtfy.com/?q=zend+framework+jquery http://mahtonu.wordpress.com/2011/05/04/using-jquery-and-jquery-ui-with-zend-framework/ Compartilhar este post Link para o post Compartilhar em outros sites
cassiombc 0 Denunciar post Postado Setembro 11, 2012 è apenas coloca no phtml crianco a tag <script> mas o meu problema é o seguinte agora, o meu código esta da seguinte maneira: <?php $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); $this->headTitle('Seatech'); echo $this->doctype(); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <?php echo $this->headMeta(); echo $this->headLink()->prependStylesheet($this->baseUrl() . '/css/style.css'); print $this->headScript(); ?> <script type="text/javascript"> $(function(){ $('div#slide').cycle(); }) </script> <?php echo $this->headTitle(); ?> </head> mas a função não está funcionando, ja no meu dream weaver se encontra tudo ok, que fiz todo o design do projeto e no netbeans estou apenas aplicando o padrão framework. Compartilhar este post Link para o post Compartilhar em outros sites
Samuel Gomes_148425 19 Denunciar post Postado Setembro 11, 2012 No bootstrap.php dentro de application, coloca assim: protected function _initViewHelpers() { $view = new Zend_View(); $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer(); $view->setEncoding ('UTF-8'); $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper'); $viewRenderer->setView($view); Zend_Controller_Action_HelperBroker::addHelper($viewRenderer); } No seu layout, dentro de application/layout/scripts/layout.phtml detro de head coloque isso <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>Samuel gomes huarachi</title> <?php echo $this->jQuery() ->addStyleSheet('/css/jquery-ui-1.8.23.custom.css') ->setVersion('1.5.1') ->setUiVersion('1.8.23') ->enable() ->uiEnable(); ?> </head> Até Compartilhar este post Link para o post Compartilhar em outros sites
cassiombc 0 Denunciar post Postado Setembro 11, 2012 A página não carrega. Compartilhar este post Link para o post Compartilhar em outros sites