Example #1
0
 /**
  * 
  */
 public function listAction()
 {
     $stepBreadCrumb = array('label' => 'Buka Kliente', 'url' => 'client/client/list');
     $this->view->menu()->setActivePath('client/client/list');
     $this->view->breadcrumb()->addStep($stepBreadCrumb);
     $searchClient = new Client_Form_ClientSearch();
     $searchClient->setAction($this->_helper->url('search-client'));
     $this->view->form = $searchClient;
 }
Example #2
0
 /**
  * 
  */
 public function clientAction()
 {
     if ($this->getRequest()->isXMLHttpRequest()) {
         $this->_helper->layout()->disableLayout();
     }
     // Form Client Group
     $form = $this->_initForm('clientGroup');
     $data = array();
     $id = $this->_getParam('id');
     if (!empty($id)) {
         $data['fk_id_action_plan_group'] = $id;
         if (!$this->view->caseActiveGroup()->hasAccessEdit()) {
             $form->getElement('save')->setAttrib('disabled', true);
         }
     }
     $form->populate($data);
     $this->view->form = $form;
     $searchClient = new Client_Form_ClientSearch();
     $searchClient->setAction($this->_helper->url('search-client'));
     $this->view->searchClient = $searchClient;
 }