public function init() { // $service_locator_str = 'doctrine'; // $this->sm = $this->getServiceLocator(); // $doctrineService = $this->sm->get($service_locator_str); //$this->translator = Utility::translate(); // //check login // $this->userLogin = Utility::checkLogin($this); // if(! is_object( $this->userLogin) && $this->userLogin == 0){ // $this->redirect()->toRoute('admin/child',array('controller'=>'login')); // } parent::init(); }