public function init() { parent::init(); $this->userService = new Service_User(); $this->profileService = new Service_Profile(); $this->friendService = new Service_Friend(); $this->storyService = new Service_Userstory(); $this->topicService = new Service_Topic(); $this->resourceService = new Service_Resource(); $this->messageService = new Service_Message(); $this->articleService = new Service_Article(); $this->locationService = new Service_Location(); }
public function init() { parent::init(); //Check Authentication State. Redirect If Not Logged In $authentication = Zend_Auth::getInstance(); $storage = new Auth_Adapter_AuthDoctrineDbStorage('auth'); $authentication->setStorage($storage); if ($authentication->hasIdentity()) { $this->_user = $authentication->getIdentity(); } else { $controller = $this->getRequest()->getControllerName(); $action = $this->getRequest()->getActionName(); return $this->_redirect("/user/login?returnc={$controller}&returna={$action}", array("exit" => TRUE)); } }
public function init() { parent::init(); $this->service = new Service_User(); }
public function init() { parent::init(); }