3 class RenderTestsController
extends AkActionController
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 ))));
28 $this->advertisement
= new stdClass();
29 $this->advertisement
->name
= 'first_ad';