add the first author information
This commit is contained in:
parent
387f457031
commit
7229d9381d
|
@ -4,7 +4,7 @@ class KnowledgeController extends Zend_Controller_Action
|
||||||
function indexAction()
|
function indexAction()
|
||||||
{
|
{
|
||||||
//$this->_redirect('/metadata');
|
//$this->_redirect('/metadata');
|
||||||
$sql="select * from knl_article where url <>'' order by item_id desc limit 10";
|
$sql="select a.author,c.* from knl_article c left join knl_author a on c.item_id=a.item_id where c.url <>'' and a.place=1 order by ts_created desc limit 10";
|
||||||
$this->view->articles=$this->db->fetchAll($sql);
|
$this->view->articles=$this->db->fetchAll($sql);
|
||||||
}
|
}
|
||||||
function preDispatch()
|
function preDispatch()
|
||||||
|
|
Loading…
Reference in New Issue