Пример #1
0
 /**
  * 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'))));
 }
Пример #2
0
 /**
  * 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'))));
 }
Пример #3
0
 /**
  * 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()));
 }