コード例 #1
0
ファイル: template.php プロジェクト: mined-gatech/hubzero-cms
 /**
  * Override parse template to get document content
  *
  * @return    void
  */
 public function parse()
 {
     // check to make sure we have group
     if (!$this->get('group')) {
         App::abort(406, 'Missing Needed Hubzero Group Object');
     }
     // define base path
     $params = Component::params('com_groups');
     $base = $params->get('uploadpath', '/site/groups');
     $base = DS . trim($base, DS) . DS . $this->group->get('gidNumber') . DS . 'template' . DS;
     // fetch template file (sets document for parsing)
     $this->_fetch($base);
     // call parse
     return parent::parse();
 }