Render sub template inside a existing slim template (canonical or embedded templates)
Solution
$this->fetch('template.phtml', ["variable_name"=>$some_value, ...])
Example
=$this->fetch('finances-amortissement.phtml', ["header" => $amortissementTable[0], "table" => array_slice($amortissementTable,1)]) ?>
Recent Comments