本文整理汇总了PHP中PwSeoBo::getData方法的典型用法代码示例。如果您正苦于以下问题:PHP PwSeoBo::getData方法的具体用法?PHP PwSeoBo::getData怎么用?PHP PwSeoBo::getData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PwSeoBo
的用法示例。
在下文中一共展示了PwSeoBo::getData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: postHandle
public function postHandle()
{
//门户管理模式 编译目录切换
if ($this->getRequest()->getPost('design')) {
$loginUser = Wekit::getLoginUser();
$designPermission = $loginUser->getPermission('design_allow_manage.push');
if ($designPermission > 0) {
$dir = Wind::getRealDir('DATA:design.template');
if (is_dir($dir)) {
WindFolder::rm($dir, true);
}
$this->forward->getWindView()->compileDir = 'DATA:design.template';
}
}
// SEO settings
Wind::import('SRV:seo.bo.PwSeoBo');
$sitename = Wekit::C('site', 'info.name');
PwSeoBo::set('{sitename}', $sitename);
Wekit::setGlobal(NEXT_VERSION . ' ' . NEXT_RELEASE, 'version');
Wekit::setGlobal(PwSeoBo::getData(), 'seo');
$this->setOutput($this->getRequest()->getIsAjaxRequest() ? '1' : '0', '_ajax_');
/*[设置给PwGlobalFilters需要的变量]*/
$_var = array('current' => $this->forward->getWindView()->templateName, 'a' => $this->router->getAction(), 'c' => $this->router->getController(), 'm' => $this->router->getModule());
$this->getResponse()->setData($_var, '_aCloud_');
Wekit::load('APPS:appcenter.service.srv.PwDebugApplication')->compile();
}
示例2: run
/**
* 错误提示
*
* @see WindErrorHandler::run()
*/
public function run()
{
$this->setOutput($this->state, 'state');
if (isset($this->error['data'])) {
$this->setOutput($this->error['data'], 'data');
unset($this->error['data']);
}
$this->setOutput($this->error, "message");
$this->setTemplate('TPL:common.error');
// set layout for common request
if (!$this->getRequest()->getIsAjaxRequest()) {
$this->setLayout('TPL:common.layout_error');
Wind::import('SRV:seo.bo.PwSeoBo');
$lang = Wind::getComponent('i18n');
PwSeoBo::setCustomSeo($lang->getMessage('SEO:' . $this->state . '.page.title'), '', '');
PwSeoBo::set('{sitename}', Wekit::C('site', 'info.name'));
Wekit::setGlobal(NEXT_VERSION, 'version');
Wekit::setGlobal(PwSeoBo::getData(), 'seo');
}
}