Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / controllers / locale_detection_controller.php
blobfc183c97cd2d5fcd304493020ba2f0b3c59e71bf
1 <?php
3 class LocaleDetectionController extends ApplicationController
5 var $layout = false;
6 function index()
8 $this->renderText('Hello from LocaleDetectionController');
11 function check_header()
13 $this->renderText($_SERVER['HTTP_ACCEPT_LANGUAGE']);
16 function get_language()
18 $this->renderText(Ak::lang());
21 function get_param()
23 $this->renderText($this->params[$this->params['param']]);
26 function session()
28 if(!empty($this->params['id']) && $this->params['id'] == 1234){
29 $_SESSION['value'] = 1234;
31 $this->renderText($_SESSION['value']);