Skip to content

Instantly share code, notes, and snippets.

@demiankatz
Created August 13, 2012 17:38
Show Gist options
  • Save demiankatz/3342679 to your computer and use it in GitHub Desktop.
Save demiankatz/3342679 to your computer and use it in GitHub Desktop.
class IndexController extends AbstractActionController
{
public function indexAction()
{
return $this->forward()->dispatch('Application\Controller\Index', array('action' => 'test'));
}
public function testAction()
{
$x = new ViewModel();
$x->setTemplate('application/index/index');
return $x;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment