public function init() { $id = $this->getRequest()->getParam('id', 0); if ($id > 0) { $factory = new Flex_Panel_Factory(); $this->panel = $factory->find($id)->current(); } }