更新首页元数据调用

This commit is contained in:
Li Jianxuan 2014-03-07 02:39:32 +00:00
parent 6636606656
commit 02e12c01ae
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,13 @@ class IndexController extends AbstractActionController
$metadata = new \Westdc\Metadata\Outlink; $metadata = new \Westdc\Metadata\Outlink;
$metadata->opt->limit = 10; $metadata->opt->limit = 10;
$this->ViewModel->setVariable('metadata',$metadata->fetchAll()); $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); unset($metadata);
return $this->ViewModel; return $this->ViewModel;