提取有URL的文章

This commit is contained in:
wlx 2010-01-07 15:14:06 +00:00
parent a5e02f8d84
commit 204c1de674
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ class KnowledgeController extends Zend_Controller_Action
function indexAction()
{
//$this->_redirect('/metadata');
$sql="select * from knl_article order by item_id desc limit 10";
$sql="select * from knl_article where url <>'' order by item_id desc limit 10";
$this->view->articles=$this->db->fetchAll($sql);
}
function preDispatch()