dreamjob/app/Controller/ExternController.php

43 lines
1.8 KiB
PHP
Raw Normal View History

2015-02-27 14:59:50 +01:00
<?php
App::uses('AppController', 'Controller');
class ExternController extends AppController {
public $uses = array('DreamjobJobOpening','DreamjobCompany');
public $components = array('MiconwareSession');
public function button_company() {
$this->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->request->data['DreamjobUser']['mail'] = $this->request->query('mail');
$this->request->data['AppUser']['nickname'] = $this->request->query('company');
$this->request->data['DreamjobUser']['street'] = $this->request->query('street');
$this->request->data['DreamjobUser']['postcode'] = $this->request->query('postcode');
$this->request->data['DreamjobListCity']['name'] = $this->request->query('city');*/
$this->set("content",array());
$this->layout = 'extern_mini';
$this->render('/Extern/button_opening_extern');
}
}