From 114474bf40c2c892823bd5135dc88bafcc8f1f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 15 Apr 2014 22:16:09 +0200 Subject: [PATCH] suche --- app/Controller/SearchController.php | 4 ++-- app/View/Home/home.ctp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Controller/SearchController.php b/app/Controller/SearchController.php index e4d4b31..a233e3c 100644 --- a/app/Controller/SearchController.php +++ b/app/Controller/SearchController.php @@ -39,7 +39,7 @@ class SearchController extends AppController { $this->render('/Search/searchopenings'); } - + /* public function listopening() { $this->MiconwareSession->init($this); @@ -55,5 +55,5 @@ class SearchController extends AppController { $this->set("openings",$openings); $this->render('/Search/listopenings'); } - } + }*/ } diff --git a/app/View/Home/home.ctp b/app/View/Home/home.ctp index 4d56efc..5dfcba1 100755 --- a/app/View/Home/home.ctp +++ b/app/View/Home/home.ctp @@ -8,9 +8,9 @@

- Form->create(null,array('inputDefaults'=> array('div' => false,'label'=>false,'class' => 'form-control'),'url'=>array('controller'=>'home', 'action'=>'home'))); ?> + Form->create(null,array('inputDefaults'=> array('div' => false,'label'=>false,'class' => 'form-control'),'url'=>array('controller'=>'search', 'action'=>'openings'),'type'=>'get')); ?>
- Form->input('textsearch');?> + Form->input('DreamjobJobOpening.title');?> Form->button('',array('div' => false,'class'=>"btn btn-default",'type' => 'submit')); ?> @@ -23,7 +23,7 @@ echo "
"; echo "
"; } - echo $this->Html->link(__('dreamjob.search.to'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary")); + echo $this->Html->link(__('dreamjob.search.to'),array('controller'=>'search', 'action'=>'opening'),array("class" => "btn btn-primary")); ?>