/** * The blog. */ public function Blog() { $content = new ContentModel(); $this->views->SetTitle('My blog')->AddInclude(__DIR__ . '/blog.tpl.php', array('contents' => $content->ListAll(array('type' => 'post', 'order-by' => 'title', 'order-order' => 'DESC')))); }
/** * Display all content of the type "post". */ public function Index() { $content = new ContentModel(); $this->views->SetTitle('Blog')->AddInclude(HAL_INSTALL_PATH . '/view/blog.tpl.php', array('contents' => $content->ListAll(array('type' => 'post', 'order-by' => 'title', 'order-order' => 'DESC')))); }
/** * Show a listing of all content. */ public function Index() { $content = new ContentModel(); $this->views->SetTitle('Content Controller')->AddInclude(HAL_INSTALL_PATH . '/view/content.tpl.php', array('contents' => $content->ListAll())); }