MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); $this->set('MENU_SERVICE', true); $this->set('SERVICE_CATEGORY', $this->request->param('list')); $this->set('category',$this->DreamjobServiceCategory->find('all')); if($this->request->param('list')) $this->set('list',$this->DreamjobService->find('all',array('conditions'=>array('DreamjobService.category'=>$this->request->param('list'))))); else $this->set('list',$this->DreamjobService->find('all')); $this->render('/Service/index'); } public function show(){ $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); $this->set('MENU_SERVICE', true); $this->set('obj',$this->DreamjobService->find('first',array('conditions'=>array('DreamjobService.id'=>$this->request->param('item'))))); $this->render('/Service/show'); } }