Example #1
0
 public function listarTodosPinchosValidados()
 {
     //lista pinchos validados por el admin
     // find the Post object in the database
     $pinchos = $this->pinchoMapper->pinchosValidados();
     // put the Post object to the view
     $this->view->setVariable("pinchos", $pinchos);
     // check if comment is already on the view (for example as flash variable)
     // if not, put an empty Comment for the view
     // render the view (/view/posts/view.php)
     $this->view->render("pinchos", "listarTodosPinchos");
 }