public function showAction() { $id = $this->getEvent()->getRouteMatch()->getParam('id'); $em = $this->getServiceLocator()->get('em'); $bean = new \Sticks\Beans\Stickers($em); return array('stick' => $bean->getIfExist($id)); }