Skip to content

Instantly share code, notes, and snippets.

@ascsystems
Created August 23, 2013 06:07
Show Gist options
  • Select an option

  • Save ascsystems/6316004 to your computer and use it in GitHub Desktop.

Select an option

Save ascsystems/6316004 to your computer and use it in GitHub Desktop.
<?php foreach($this->tabs as $tab) { echo $tab->name; } ?>
<?php
class HomeController extends AbstractActionController
{
public function indexAction()
{
$tabs = $this->getServiceLocator()->get("tabs")->select();
$this->view->tabs = $tabs;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment