diff --git a/app/Controller/HomeController.php b/app/Controller/HomeController.php index fd7ef09..c87f7c9 100755 --- a/app/Controller/HomeController.php +++ b/app/Controller/HomeController.php @@ -20,12 +20,12 @@ class HomeController extends AppController { * @throws NotFoundException When the view file could not be found * or MissingViewException in debug mode. */ - + private $home_opening_condition = array('contitions'=>array('active'=>true),'order'=>'DreamjobJobOpening.id DESC','limit'=>3); public function home() { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); $this->MiconwareSession->setFlash('In Entwicklung','flash',array('alert'=>'info')); - $openings = $this->DreamjobJobOpening->find('all',array('contitions'=>array('active'=>true),'order'=>'DreamjobJobOpening.id DESC','limit'=>3)); + $openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition); $this->set('openings',$openings); $this->set('title', 'dreamjob.startpage'); $this->set('MENU_START', true); @@ -52,7 +52,8 @@ class HomeController extends AppController { $this->MiconwareSession->initWeb($this); - + $openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition); + $this->set('openings',$openings); $this->set('title', 'dreamjob.startpage'); $this->set('MENU_START', true); $this->render('/Home/home'); @@ -67,7 +68,8 @@ class HomeController extends AppController { $this->MiconwareSession->setFlash('dreamjob.loggingoutError','flash',array('alert'=>'danger')); $this->MiconwareSession->initWeb($this); - + $openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition); + $this->set('openings',$openings); $this->set('title', 'dreamjob.startpage'); $this->set('MENU_START', true); $this->render('/Home/home'); @@ -76,7 +78,6 @@ class HomeController extends AppController { public function contact() { $this->MiconwareSession->init($this); - sleep(1); $this->MiconwareSession->initWeb($this); $this->set('title', 'dreamjob.contact'); $this->render('/Home/contact'); diff --git a/app/View/Home/home.ctp b/app/View/Home/home.ctp index bbf9c4d..a2f1420 100755 --- a/app/View/Home/home.ctp +++ b/app/View/Home/home.ctp @@ -3,15 +3,15 @@ * */ ?> -
- -
-

-
+