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 the form $SectForm = new Sectors_Form_Search(); $this->view->form = $SectForm; $id = (int) $this->_getParam('id'); $this->view->id = $id; //calling the model $userdetails = new User_Model_User(); $user_details = $userdetails->getuser($id); $module = $userdetails->getmodule('User'); foreach ($module as $module_id) { } $this->view->mod_id = $module_id['parent']; $this->view->sub_id = $module_id['module_id']; $this->view->userdetails = $user_details; $this->view->address = $this->view->adm->getModule("address", $id, "Individual"); $personal = $userdetails->getpersonal($id); $this->view->personal = $personal; // } else { // $this->_redirect('index/error'); // } // } // / }