src/Component/Frontend/VariableModal/VariableModal.php
public function render() : void
    {
        if ($this->recipeId && !$this->recipe)
        {
            $this->recipe = $this->recipeRepository->findOneById($this->recipeId);
        }

        $this->template->recipe = $this->recipe;
        $this->template->setFile(__DIR__.'/templates/variableModal.latte');
        $this->template->render();
    }
public function render() : void
    {
        if ($this->recipeId && !$this->recipe)
        {
            $this->recipe = $this->recipeRepository->findOneById($this->recipeId);
        }

        $this->template->recipe = $this->recipe;
        $this->template->setFile(__DIR__.'/templates/variableModal.latte');
        $this->template->render();
    }
public function render ( ) : void { if ( $ this -> recipeId && ! $ this -> recipe ) { $ this -> recipe = $ this -> recipeRepository -> findOneById ( $ this -> recipeId ) ; } $ this -> template -> recipe = $ this -> recipe ; $ this -> template -> setFile ( __DIR__ . '/templates/variableModal.latte' ) ; $ this -> template -> render ( ) ; }
Render
Render