示例#1
0
文件: Header.php 项目: JBZoo/CrossCMS
 /**
  * {@inheritdoc}
  */
 public function noindex()
 {
     $this->_doc->setMetadata('robots', 'noindex, nofollow');
     $this->_cms['response']->setHeader('X-Robots-Tag', 'noindex, nofollow');
 }