/** * Retrieve galleries listing * * @return array */ function getTemplateVars() { $galleries = Zoo::getService('content')->getContent(array('active' => true, 'nodetype' => 'gallery_node', 'viewtype' => "Short", 'order' => 'published'), 0, 0); $tree = new Zoo_Object_Tree($galleries, 'id', 'pid'); return array('galleries' => $tree->toArray()); }
/** * List categories */ public function categoriesAction() { $categories = Zoo::getService('content')->getContent(array('group' => 'category', 'order' => 'title'), 0, 0); $tree = new Zoo_Object_Tree($categories, 'id', 'pid'); $this->view->assign('tree', $tree->toArray()); }