afbora / kirby-blade

Enable Laravel Blade Template Engine for Kirby 3
MIT License
20 stars 7 forks source link

3.7 Compatibility #20

Open afbora opened 2 years ago

wdebusschere commented 2 years ago

See also https://github.com/getkirby/kirby/issues/4381 I only have your plugin :) Blade!! Thank you.

afbora commented 2 years ago

I've released 2.0.0-rc.1 version that compatible with 3.7. Any testers would appreciate 💛

https://github.com/afbora/kirby-blade/releases/tag/2.0.0-rc.1

wdebusschere commented 2 years ago

2] PHP Fatal error: Cannot redeclare e() (previously declared in /var/www/html/mysite/vendor/illuminate/support/helpers.php:109) in /var/www/html/mysite/kirby/config/helpers.php on line 128

    "afbora/kirby-blade": "2.0.0-rc.1",
    "getkirby/cms": "3.7.0-rc.2"
afbora commented 2 years ago

@wdebusschere Thanks for test and report!

I think, you need to disable e() helper manually from root index.php

define('KIRBY_HELPER_E', false);
wdebusschere commented 2 years ago

@afbora Ok now it's working i added define('KIRBY_HELPER_E', false); AND delete the cache and it worked. (Used composer to install)

wdebusschere commented 2 years ago

@afbora This also fixed the paging problem i experienced: blog/page:2 was not working Thx

afbora commented 2 years ago

@wdebusschere Thanks for testing again. Pagination issue was related with Kirby and fixed on RC2 🙂