How to use Twig path, form, asset, routes without symfony

I have a custom MVC website and I want to move this one to Symfony.

I think that I have to do this in 2 parts : move template to Twig then install Symfony.

Composer is installed and I use Twig and a few bundle of Symfony.

I work actually on moving template to Twig and this one works.

But to earn time, my Twig template have to be perfect because I have to update all pages.

I’m going well but I don’t find all responses.

Do you know how to use

  • asset {{ asset('vendor/.css') }} -> composer require symfony/asset ?
  • path and routes {{ path('') }}
  • use FormType {{ form_label(form.login)}}

without symfony ?

Thanks a lot !!!

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *