This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
It is such a pain not being able to use the Laravel helper functions in components. All my plugin work is in the front end not the back end so I cant even use the October (odd) way of defining forms.
It seems a strange decision to use Twig and not support standard Laravel.
Or have I missed something?
It looks like there are some twig functions for this in the CMS module. Something like:
{{ form_open({'url': 'foo/bar', 'method': 'post'}) }}
{{ form_label("Username", "username") }}
{{ form_text("username") }}
{{ form_label("Password", "password") }}
{{ form_close() }}
...would work. Also see: http://octobercms.com/docs/plugin/registration#extending-twig and https://github.com/octobercms/october/blob/master/modules/cms/ServiceProvider.php#L98
You are right! Thank you very much. They follow the laravel form helper convention which is perfect. They are not documented but at least they are there and work really well.
I posted an issue to get more of the blade like stuff in october: https://github.com/octobercms/october/issues/254
that0n3guy said:
It looks like there are some twig functions for this in the CMS module. Something like:
{{ form_open({'url': 'foo/bar', 'method': 'post'}) }} {{ form_label("Username", "username") }} {{ form_text("username") }} {{ form_label("Password", "password") }} {{ form_close() }}
...would work. Also see: http://octobercms.com/docs/plugin/registration#extending-twig and https://github.com/octobercms/october/blob/master/modules/cms/ServiceProvider.php#L98
It appears you can use all from Laravel Froms (http://laravel.com/docs/4.2/html)
:O OMFG i didn´t realize that!, this CMS it´s almost perfect...maybe it would be, at least for laravel lovers, I am going to try this right now!
Last updated
1-7 of 7