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

Shapeless
Shapeless

From this page, opening a form is advised to do this way:

http://octobercms.com/docs/database/model#attachments-usage-example

<?= Form::open(array('files'=>true)) ?>

            <input name="example_file" type="file">
            <button type="submit">Upload File</button>

<?= Form::close() ?>

However this renders as text for everything after the second single quote. What is the work around for this?

Shapeless
Shapeless

I guess i don't understand where i Would place this line of code?

ndcisiv
ndcisiv

Your form is going to be in a page/partial so I would just use the Twig syntax as described on http://octobercms.com/docs/cms/markup#forms

{{ form_open() }}
{{ form_open({ class: 'form-horizontal' }) }}
{{ form_open({ request: 'onUpdate' }) }}

Last updated

Shapeless
Shapeless

Yeah I tried this. The request parameter wasn't loading on the form, but rather on one of the hidden inputs.... It was really throwing me off..

Last updated

1-4 of 4

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