Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / controllers / http_requests_controller.php
blobb596e3ed36a8b0e7a37cd16107ef67febd3eb413
1 <?php
3 class HttpRequestsController extends ApplicationController
5 function index() {
6 $this->renderText("Hello unit tester");
9 function verb(){
10 $this->renderText($this->Request->getMethod());
13 function test_header()
15 $this->Response->addHeader('x-test-header: akelos');
16 $this->renderNothing(200);
19 function code()
21 $this->renderNothing($this->params['id']);
24 function get_user_agent()
26 $this->renderText($_SERVER['HTTP_USER_AGENT']);
29 function json()
31 $this->renderText(Ak::toJson($this->params['testing']));
34 function redirect_1()
36 $this->redirectToAction('redirect_2');
39 function redirect_2()
41 $this->redirectToAction('print_3');
44 function print_3()
46 $this->renderText('3');