update conduit and documentation on master

This commit is contained in:
Emmanuel ROY 2021-01-05 18:08:40 +01:00
commit 7d7f0166cf
11 changed files with 172 additions and 9 deletions

View file

@ -5,10 +5,15 @@ namespace MVC\Classe\Implement;
class Conduit extends Action
{
public function initialize($var)
public function initialize($application)
{
//extract($application->modele->page);
foreach ($application->url->page as $key => $value) {
$this->templateData[$key] = $value;
}
//Export variable from conduit
foreach ($var as $key => $value) {
foreach ($application->route as $key => $value) {
if ($key != "controller") {
if ($key != "_route") {
$this->$key = $value;