Exemplo n.º 1
0
 public function commonviewAction()
 {
     // 		$this->view->title = "View user";
     // 		//Acl
     //      $access = new App_Model_Access();
     //      $checkaccess = $access->accessRights('User',$this->view->globalvalue[0]['name'],'commonviewAction');
     //      if (($checkaccess != NULL)) {
     // calling search form
     // 		$SectForm = new Sectors_Form_Search();
     // 		$this->view->form = $SectForm;
     //getting the id
     $id = $this->_getParam('id');
     $this->view->id = $id;
     //getting the model
     $userdetails = new User_Model_User();
     $user_details1 = $userdetails->getUser($id);
     $module = $userdetails->getmodule('User');
     foreach ($module as $module_id) {
     }
     //displaying the submodule details
     $this->view->mod_id = $module_id['parent'];
     $this->view->sub_id = $module_id['module_id'];
     $this->view->userdetails = $user_details1;
     $this->view->address = $this->view->adm->getModule("ourbank_address", $id, "User");
     $this->view->contact = $this->view->adm->getModule("ourbank_contact", $id, "User");
     //         } else {
     //            		 $this->_redirect('index/error');
     //     }
 }