芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/resupres/application/classes/controller/recherche.php
response->headers('Content-Type', 'text/plain'); $this->response->headers('charset', 'utf-8'); $this->response->headers('cache-control', 'no-cache , private'); $this->response->headers('pragma', 'no-cache'); $recherche = $this->request->param('texteRecherche'); $rechercheCandidat = ORM::factory('candidat') ->where('nom','like', '%'.$recherche.'%') ->or_where('prenom', 'like', '%'.$recherche.'%') ->find_all(); $recherchePartis = ORM::factory('parti') ->where('nom','like','%'.$recherche.'%') ->find_all(); $this->template = View::factory('recherche/jsonRecherche'); $this->template->rechercheCandidat = $rechercheCandidat; $this->template->recherchePartis = $recherchePartis; } }