Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GeeH committed Mar 7, 2013
1 parent 4379ead commit 3c2cb33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Disable layout in a ViewModel:
$viewModel = new ViewModel();
$viewModel->setTerminal(true);

Disable view rendering from an action:

return $this->response;

Set custom headers or response code:

/** @var \Zend\Http\PhpEnvironment\Response $response */
Expand All @@ -49,4 +53,4 @@ Set custom headers or response code:
Change controller in `Module.php`:

$controller = $e->getTarget();
$controller->layout('layout/alternativelayout');
$controller->layout('layout/alternativelayout');

0 comments on commit 3c2cb33

Please sign in to comment.