Commit a633b417 authored by Safyrus's avatar Safyrus

correction bug

parent 969ebde6
......@@ -8,34 +8,34 @@ use bdd\models\platform;
class ControleurRequete{
public function selectMario(){
$jeu = \bdd\models\game::select('name')->where('name','like','%Mario%','or','alias','like','%Mario%')->get();
$jeu = \bdd\models\Game::select('name')->where('name','like','%Mario%','or','alias','like','%Mario%')->get();
$vue = new \bdd\views\RequeteView($jeu);
$vue->render(1);
}
public function selectJapanCompany(){
$company = \bdd\models\company::select('name')->where('location_country','like','%Japan%')->get();
$company = \bdd\models\Company::select('name')->where('location_country','like','%Japan%')->get();
$vue = new \bdd\views\RequeteView($company);
$vue->render(1);
}
public function selectPlatformBase(){
$platform = \bdd\models\platform::select('name')->where('install_base','>','10000000')->get();
$platform = \bdd\models\Platform::select('name')->where('install_base','>','10000000')->get();
$vue = new \bdd\views\RequeteView($platform);
$vue->render(1);
}
public function selectGameNumber(){
$game = \bdd\models\game::select('name')->orderBy('name')->take(442)->skip(21173)->get();
$game = \bdd\models\Game::select('name')->orderBy('name')->take(442)->skip(21173)->get();
$vue = new \bdd\views\RequeteView($game);
$vue->render(1);
}
public function selectPage($p){
$p = ($p-1)*500;
$jeu = \bdd\models\game::select('id','name')->orderBy('id')->take(500)->skip($p)->get();
$jeu = \bdd\models\Game::select('id','name')->orderBy('id')->take(500)->skip($p)->get();
$vue = new \bdd\views\RequeteView($jeu);
$vue->render(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment