avanzu / AdminThemeBundle

Admin Theme based on the AdminLTE Template for easy integration into symfony
MIT License
281 stars 149 forks source link

Error 500 Unable to find base-layout.html.twig #236

Open craph opened 6 years ago

craph commented 6 years ago

@shakaran Please we I add this bloc of code {% extends 'AvanzuAdminThemeBundle:layout:base-layout.html.twig' %} in my base.html.twig I got an internal server error.

Here is the stack trace : Unable to find template "AvanzuAdminThemeBundle:layout:base-layout.html.twig" (looked into: C:\wamp64\www\project\app/Resources/views, C:\wamp64\www\project\vendor\symfony\symfony\src\Symfony\Bridge\Twig/Resources/views/Form) in base.html.twig at line 1.

Is the version 1.3.x really stable ??

Component Version
Symfony version 3.4
AdminThemeBundle ^1.3
Operating System Windows
maxi3390 commented 5 years ago

Hi @craph, I had the same problem using Symfony 3.4 with PHP5.6, you should enable twig templating engine on the app/config/config.yml file.

# app/config/config.yml
framework:
    # ...
    templating: { engines: ['twig'] }