Esempio n. 1
0
 public function index($args, $app)
 {
     $blog = Blog::init($app['database']);
     $blogs = Blog::getAll();
     $app['view']->view('home', ['blogs' => $blogs]);
 }
Esempio n. 2
0
 protected function beforeRender()
 {
     parent::beforeRender();
     $this->template->last = $this->blog->findAll()->limit(5)->order("datum DESC");
 }