MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); if(!empty($this->request->params['id'])){ $this->set("company",$this->DreamjobCompany->find('first',array('conditions' => array('AppUser.id' => $this->request->params['id'])))); } $this->layout = 'extern_mini'; $this->render('/Extern/button_company'); } public function button_opening() { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); if(!empty($this->request->params['id'])){ $con = $this->MiconwareSession->getOpeningCondition(); $con['DreamjobJobOpening.id'] = $this->request->params['id']; $this->set("opening",$this->DreamjobJobOpening->find('first', array('conditions' => $con))); } $this->layout = 'extern_mini'; $this->render('/Extern/button_opening'); } public function button_opening_extern() { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); $this->set("content",array( "mail"=>$this->request->query('mail'), "company"=>$this->request->query('company'), "street"=>$this->request->query('street'), "postcode"=>$this->request->query('postcode'), "city"=>$this->request->query('city'), )); $this->layout = 'extern_mini'; $this->render('/Extern/button_opening_extern'); } }