dreamjob/app/Controller/ServiceController.php

37 lines
1.0 KiB
PHP
Raw Normal View History

2014-05-15 19:38:25 +02:00
<?php
App::uses('AppController', 'Controller');
class ServiceController extends AppController {
public $uses = array();
public function index() {
$this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this);
$this->set('MENU_SERVICE', true);
$this->set('SERVICE_index', true);
$this->render('/Service/index');
}
public function serviceList(){
$this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this);
$this->set('MENU_SERVICE', true);
$this->set('SERVICE_'.$this->request->param('list'), true);
$this->render('/Service/'.$this->request->param('list'));
}
public function serviceItem(){
$this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this);
$this->set('MENU_SERVICE', true);
$this->set('SERVICE_'.$this->request->param('list'), true);
$this->render('/Service/'.$this->request->param('list').'_'.$this->request->param('item'));
}
}