Skip to content

Commit

Permalink
correct
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaxium69 committed Jul 6, 2021
1 parent 89abd87 commit eda0eb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/Controllers/Exemple.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Exemple extends Controller
{

//protected $modelName = \Model\Exemple::class;
protected $modelName = \Model\Exemple::class;



Expand All @@ -33,7 +33,7 @@ public function index()

//on affiche
\Rendering::render("exemple/exemple",
compact('user', 'gateaux', 'titreDeLaPage')
compact('user', 'exemple', 'titreDeLaPage')
);

}
Expand All @@ -50,7 +50,8 @@ public function indexApi()
header('Access-Control-Allow-Origin: *');

//Json
// echo json_encode($gateaux);
echo json_encode(["test1"=>"truc1",
"test2"=>"truc2"]);

}

Expand Down

0 comments on commit eda0eb4

Please sign in to comment.