From f44d3b148a8c8b18a090e2c06a72027a6218813e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Sat, 28 Feb 2015 01:59:47 +0100 Subject: [PATCH] Done --- .editorconfig | 4 +++- .gitignore | 3 +++ app/Controller/ExternController.php | 19 ++++++++++--------- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.editorconfig b/.editorconfig index 217a0e3..dfcfa44 100755 --- a/.editorconfig +++ b/.editorconfig @@ -4,10 +4,12 @@ root = true [*] -indent_style = tab +indent_style = space +indent_size = 2 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true +charset = utf-8 [*.bat] end_of_line = crlf diff --git a/.gitignore b/.gitignore index bc5c280..fd2c078 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,7 @@ upload-produktiv.sh Icon? ehthumbs.db Thumbs.db + +# IDE generated files # +####################### /nbproject/ diff --git a/app/Controller/ExternController.php b/app/Controller/ExternController.php index a1b5ca1..213edef 100644 --- a/app/Controller/ExternController.php +++ b/app/Controller/ExternController.php @@ -4,9 +4,9 @@ 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); @@ -29,13 +29,14 @@ class ExternController extends AppController { } 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->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'); }