# HG changeset patch # User Gautier Thibault # Date 1271774551 -7200 # Node ID 9452e144c4d401740871db6a7e2cd0b8b6ffd0c4 # Parent c19b7400ac1b599b2cfb77fae63143b168a6e7e4 add tags in homepage diff -r c19b7400ac1b -r 9452e144c4d4 web/thdProject/apps/frontend/modules/homepage/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Tue Apr 20 16:32:16 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Tue Apr 20 16:42:31 2010 +0200 @@ -7,12 +7,20 @@ } public function executeTagList() { // FIXME: Dummy value + $this->tagList = Array(); $this->tag = Array('score' => 3); + // Get Tags in Segment list + $query = Doctrine_Query::create() + ->from('ThdSegment S') + ->limit(5); + $this->tagsList = $query->execute(); + } public function executeRandomFilm() { // FIXME: Dummy value $this->tag = Array('score' => 3); + } public function executeLastTaggedList() { diff -r c19b7400ac1b -r 9452e144c4d4 web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php --- a/web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php Tue Apr 20 16:32:16 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php Tue Apr 20 16:42:31 2010 +0200 @@ -1,14 +1,14 @@

Navigation par tag :

\ No newline at end of file