Fork me on GitHub

redirect

To redirect to another page while inside of a controller, use redirect().

<?php
$url = MvcRouter::admin_url(array('controller' => 'venues', 'action' => 'index'));
$this->redirect($url);
?>