From 1157141d5aa5e8526ad90d02d36f54387925e9a5 Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 30 Oct 2011 08:50:54 +0000 Subject: [PATCH] add three data thumb --- application/default/controllers/HeiheController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/default/controllers/HeiheController.php b/application/default/controllers/HeiheController.php index b2a6ce3c..8b1b8c9a 100644 --- a/application/default/controllers/HeiheController.php +++ b/application/default/controllers/HeiheController.php @@ -11,6 +11,8 @@ class HeiheController extends DataController function indexAction() { + $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.source='e3ad32dc-f573-11e0-aa7b-b768cfd88d80' and length(t.data)>2 order by random() limit 3"; + $this->view->meatdata=$this->db->fetchAll($sql); } /*