pedroborges / kirby-blade-template

⬢ Laravel Blade template component for Kirby CMS.
MIT License
27 stars 3 forks source link

Fatal error: Cannot redeclare e() #9

Closed weeg closed 5 years ago

weeg commented 5 years ago

After installing kirby-blade-template the CMS did not start to work.

Kirby and Laravel have an e() helper function and Kirby cannot redeclare it.

As a workaround I was extending the index.php to look like this. I don't know if there is any other workaround.

require __DIR__ . '/kirby/config/helpers.php';
require __DIR__ . '/kirby/bootstrap.php';

echo (new Kirby)->render();
pedroborges commented 5 years ago

Checkout the update I just pushed to the master branch. Docs will be updated soon.