差分
ページの作成:「{{PAGENAME}} == レイアウトを無効にする == https://framework.zend.com/manual/2.4/en/modules/zend.view.quick-start.html public function d...」
[[category:メモ|{{PAGENAME}}]]
== レイアウトを無効にする ==
https://framework.zend.com/manual/2.4/en/modules/zend.view.quick-start.html
public function doSomethingCrazyAction()
{
$view = new ViewModel(array(
'message' => 'Hello world',
));
// Disable layouts; `MvcEvent` will use this View Model instead
$view->setTerminal(true);
return $view;
}
== レイアウトを無効にする ==
https://framework.zend.com/manual/2.4/en/modules/zend.view.quick-start.html
public function doSomethingCrazyAction()
{
$view = new ViewModel(array(
'message' => 'Hello world',
));
// Disable layouts; `MvcEvent` will use this View Model instead
$view->setTerminal(true);
return $view;
}