viewPath = 'Posts'; $this->render('index'); } /** * test method for ajax redirection + parameter parsing * * @param string|null $one * @param string|null $two * @return void */ public function param_method($one = null, $two = null) { echo "one: $one two: $two"; $this->autoRender = false; } /** * test method for testing layout rendering when isAjax() * * @return void */ public function ajax2_layout() { $this->layout = 'ajax2'; $this->destination(); } }