Пример #1
0
 public function executeIndex(\Library\HTTPRequest $request)
 {
     $this->page->addVar('title', 'Search');
     if ($request->postExists('Saison')) {
         print_r('hello<br>');
         $annee = $request->postData('Saison');
         $this->app->FormSearch()->setAttribute('annee', $annee);
         print_r('Année = ' . $annee . '<br>');
         $this->app->FormSearch()->setFormSearchShow(true);
         $this->app->httpResponse()->redirect('.');
     }
 }
 public function executeIndex(\Library\HTTPRequest $request)
 {
     if ($request->postExists('login')) {
         $login = $request->postData('login');
         $password = sha1($request->postData('password'));
         if ($this->managers->getManagerOf('Connexion')->connexion($login, $password, $this->app)) {
             $this->app->user()->setAuthenticated(true);
             $this->app->httpResponse()->redirect('.');
         } else {
             $this->app->user()->setFlashError('Le pseudo ou le mot de passe est incorrect.');
         }
     }
 }