예제 #1
0
 /**
  * List all todos.
  */
 public function indexAction()
 {
     $template = new Template();
     $template->set('items', TodoActiveRecord::findAll());
     $template->layout()->content = $template->render('index.tpl.php');
     $content = $template->layout()->render();
     return new Response(200, $content);
 }