This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

axomat
axomat

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?

that0n3guy
that0n3guy

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

axomat
axomat

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.

that0n3guy
that0n3guy

I posted an issue to get more of the blade like stuff in october: https://github.com/octobercms/october/issues/254

aqw137
aqw137

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)

Lucas[Keios]
Lucas[Keios]

It appears link is to L4.2, where October is L5, but yeah.

inf.carlos17476
inf.carlos17476

: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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.