Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / controllers / render_tests_controller.php
blobef4096f985b9b4d83c18c4e4f77db2de760c7681
1 <?php
3 class RenderTestsController extends AkActionController
5 function index()
7 $this->renderText('RenderTestsController is available on tests');
10 function hello_partial()
12 $this->renderText($this->renderPartial('hello_world'));
15 function hello_partial_with_options()
17 $this->renderText($this->render(array('partial'=>'hello_world','locals'=>array('cruel'=>'Cruel'))));
20 function shared_partial()
22 $advertisement = new stdClass();
23 $advertisement->name = 'first_ad';
24 $this->renderText($this->render(array('partial'=>'advertiser/ad', 'locals' => array('ad' => $advertisement ))));
26 function ad()
28 $this->advertisement = new stdClass();
29 $this->advertisement->name = 'first_ad';