public function preExecute() { $this->forward404Unless(Doctrine::getTable('SnsConfig')->get('opensocial_is_enable_mobile', false)); parent::preExecute(); if (isset($this->application)) { $this->forward404Unless($this->application->getIsMobile()); } }
public function preExecute() { parent::preExecute(); if ($this->member->getId() != $this->getUser()->getMemberId()) { sfConfig::set('sf_nav_type', 'friend'); sfConfig::set('sf_nav_id', $this->member->getId()); } }