maiconpinto / cakephp-adminlte-theme

CakePHP AdminLTE Theme
http://maiconpinto.github.io/cakephp-adminlte-theme/
MIT License
172 stars 111 forks source link

Bake error on version 2.0.0 #100

Closed jranesio closed 4 years ago

jranesio commented 4 years ago

PHP: 7.2 Cake: 4.0.3 Command: cake bake all table_name --theme AdminLTE

Error: Exception: Unexpected token "name" of value "if" ("end of statement block" expected). In [C:\xampp\htdocs\projetos\cake4admlte/vendor/maiconpinto/cakephp-adminlte-theme/templates\bake\Template\index.twig, line 63]

2020-03-29 11:50:59 Error: [Twig\Error\SyntaxError] Unexpected token "name" of value "if" ("end of statement block" expected). in C:\xampp\htdocs\projetos\cake4admlte/vendor/maiconpinto/cakephp-adminlte-theme/templates\bake\Template\index.twig on line 63 Stack Trace:

yarkm13 commented 4 years ago

@jranesio it's not related to bake itself, it's because new cake require most recent twig (in my setup it's v3.0.3 now) and twig greater than 1.4 deprecate conditions in loop definition.

I have created pull request for fix

jranesio commented 4 years ago

Thanks, solved