public function indexRoute() { $Datadon = new Datadon(); $Request = new Request(); $Articles = $Datadon->findAll('articles', array('select' => array('*'), 'join' => array('user' => array('left', 'user.id = articles.user_id'), 'profile' => array('left', 'profile.user_id = articles.user_id')), 'where' => 'user.id = 1 AND articles.id != 3', 'limit' => array('1', '3'))); echo Base::view()->render('index.twig', array('articles' => $Articles)); }
public function PageNoFichier() { echo Base::view()->render('errors/nofichier.twig'); }
public function loginRoute() { $form = new Form(); $Form = $form->startForm('', 'post', 'login', array('class' => 'login')) . $form->addInput('text', 'login', '', array('required' => true)) . $form->addInput('password', 'password', '', array('required' => true)) . $form->endForm(); echo Base::view()->render('Users/login.twig', array('form' => $Form)); }