-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling TwigBridge\Extension\Laravel\Html in Laravel 5 to use link_to() #194
Comments
Perhaps better to remove the extensions and just let people add the function names. |
But |
Oh eh, I'll need to take a look. Don't use the html/form stuff. |
But why are the HTML functions listed in the README while it's not available in the code? The README says I can use it. |
Well it was there by default in L4, but removed from L5. It did work but they probably changed the signature sometime. |
You can also use the |
Submitted a fix to LaravelCollective: LaravelCollective/html#30 |
Merged and tagged. Does updating laravelcollective/html now work for you? |
No. Still the same error:
I'm using
I put the config into This is what it looks like: public function register(){
config(array(
'twigbridge' => array(
'extensions' => array(
'enabled' => array(
'TwigBridge\Extension\Loader\Facades',
'TwigBridge\Extension\Loader\Filters',
'TwigBridge\Extension\Loader\Functions',
'TwigBridge\Extension\Laravel\Auth',
'TwigBridge\Extension\Laravel\Config',
'TwigBridge\Extension\Laravel\Input',
'TwigBridge\Extension\Laravel\Session',
'TwigBridge\Extension\Laravel\String',
'TwigBridge\Extension\Laravel\Translator',
'TwigBridge\Extension\Laravel\Url',
'TwigBridge\Extension\Laravel\Form',
'TwigBridge\Extension\Laravel\Html',
),
'facades' => array(
),
'functions' => array(
'dd',
),
),
),
));
} |
I'm getting the same error for Form & HTML |
Has anyone found a solution how to use Form? |
Do you use v0.8? I used v0.7. Maybe the newest version is now working. I don't know, I didn't tried it with v0.8. |
Not sure if this is the same problem I was having, but I have a pull request which clarifies the README on how to get the Form and Html helpers working for Laravel 5.1 |
@jordanlev I've getting an error with Lumen. Installed laravelcollective/html, enabled service provider and extensions and now I'm getting this error:
laravel/lumen-framework v5.1.6 UPD: got it, laravelcollective/html incompatible with Lumen ATM :( |
Hi,
how can enable
TwigBridge\Extension\Laravel\Html
in Laravel 5, TwigBridge 0.7?In
rcrowe/twigbridge/config/twigbridge.php
it is disabled by default. As described in 0.7/README.md:But there is no
myapp/config/extensions.php
. How must this file look like?I also put the config into my
myapp/app/Providers/ConfigServiceProvider.php
but it also doesn't work.For example when I want to use
link_to()
in my Twig template.The only way it works is when enabling the extension in
rcrowe/twigbridge/config/twigbridge.php
.The README.md says that the
link_to()
function isadded by the default Extensions
.When enabling
TwigBridge\Extension\Laravel\Form
:I installed
laravelcollective/html
as TwigBridgesuggest
incomposer.json
. But I would rather putlaravelcollective/html
intorequire
notsuggest
. However, this solves not the problem.The text was updated successfully, but these errors were encountered: