Open cviebrock opened 9 years ago
Same here. I cannot access the route method either. link_to_route doesn't work either. Editing either config file does not work.
Having the same issue.
Did you $app->configure('twigbridge')
to load the config?
I did indeed. I set up a new Lumen project just now to demonstrate the problem, download it here.
I have the same problem, did anyone find a solution?
I'm not sure if this is the same issue as #174, but I'm trying to use the
route(...)
function in my views in a Lumen application.I followed the instructions from https://github.com/rcrowe/TwigBridge#installation-on-lumen and copied the configuration to
config/twigbridge.php
, added "route" to the functions array (after "elixir", "head" and "last").Loading a view that contains
{{ route('home') }}
gives me a "whoops" screen, and some debugging reveals that the error is: "The function "route" does not exist in "layouts.html" at line 24"Further debugging shows that this line in Extension/Loader/Functions.php returns an empty array:
Stepping through the get() function, it doesn't seem to include the twigbridge configuration (either mine or the package's) at all.
Did I do something wrong?