render()の結果を取得する方法が1.X系と2.X系で違うらしい。
1.X系の場合
$this->render('fetch_template.ctp','',null); $body = $this->output;
2.X系の場合
$body = $this->render('fetch_template',"",null);
render()の結果を取得する方法が1.X系と2.X系で違うらしい。
1.X系の場合
$this->render('fetch_template.ctp','',null); $body = $this->output;
2.X系の場合
$body = $this->render('fetch_template',"",null);