/** * 执行Action前执行 * * @see Yaf_Controller::actionBefore() */ public function actionBefore() { Model_ActionLog::setType(Model_ActionLog::TYPE_FRONT); $this->_frame = 'frame.phtml'; // 访问者的GUID $this->sVistorGuid = Util_Cookie::get('guid'); if (empty($this->sVistorGuid)) { $this->sVistorGuid = Util_Guid::get('-'); Util_Cookie::set('guid', $this->sVistorGuid, 86400 * 365); } $this->assign('sStaticRoot', 'http://' . Yaf_G::getConf('static', 'domain')); }