Example #1
0
 static function get_pages_with_page_no($app, $page_no = 1)
 {
     $env = $app->environment;
     $posts = PhybridPost::all($app);
     if (!$posts) {
         $app->notFound();
         return;
     }
     $app->render('index.phtml', array('env' => $env, 'posts' => $posts, 'page_no' => $page_no));
 }