更新首页元数据调用
This commit is contained in:
parent
6636606656
commit
02e12c01ae
|
@ -36,6 +36,13 @@ class IndexController extends AbstractActionController
|
|||
$metadata = new \Westdc\Metadata\Outlink;
|
||||
$metadata->opt->limit = 10;
|
||||
$this->ViewModel->setVariable('metadata',$metadata->fetchAll());
|
||||
|
||||
$metadata->opt->where = array(" ol.host='http://deep.qherc.org' ");
|
||||
$this->ViewModel->setVariable('qinghaihu',$metadata->fetchAll());
|
||||
|
||||
$metadata->opt->where = array(" ol.host='http://www.sanjiangyuan.org.cn/' ");
|
||||
$this->ViewModel->setVariable('sanjiangyuan',$metadata->fetchAll());
|
||||
|
||||
unset($metadata);
|
||||
|
||||
return $this->ViewModel;
|
||||
|
|
Loading…
Reference in New Issue