<?php
namespace App\Controller;
use App\Model\TestModel;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
class TestController extends AbstractController{
public function Index():Response{
$model = new TestModel();
//$this->$model->$ModelProp2 = "String set up in the controller, after the constructor";
return $this->render("test_view.html.twig",[
'ModelProp1' => 'value 1',//$this->$model->$ModelProp1,
'ModelProp2' => '2',
'ModelProp3' => rand(1,100),
//'partialHtml'=> //$this->$model->$ModelProp2
]);
}
}