Skip to content

Instantly share code, notes, and snippets.

@sveneisenschmidt
Created October 26, 2012 08:09
Show Gist options
  • Save sveneisenschmidt/3957565 to your computer and use it in GitHub Desktop.
Save sveneisenschmidt/3957565 to your computer and use it in GitHub Desktop.
Wildly\Bundle\BackendBundle\Controller\DefaultController
/**
*
* @Template()
*/
public function indexAction()
{
return array(
'creatures' => $this->getNewEntities('WildlyCoreBundle:Creature', 5),
'locations' => $this->getNewEntities('WildlyCoreBundle:Location', 5),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment