SAND-framework/application/class/Implement/Conduit.php
2021-01-05 18:08:40 +01:00

26 lines
580 B
PHP

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