view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all'); $field = new Fields(); $this->view->fields = $field; } public function resetAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); require_once('Scores/SessionCiblage.php'); $session = new SessionCiblage(); $session->resetFamille('juridique'); } public function completedAction() { $table = new Table_Formejuridiques(); $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $request = $this->getRequest(); $sql = $table->select() ->where('fjLibelle LIKE "'.$request->getParam('q').'%"'); $result = $table->fetchAll($sql); foreach ($result as $item) { $output[] = array( 'label' => $item->fjLibelle . $separator . $item->fjCode, 'value' => $item->fjCode ); } echo json_encode($output); } }