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
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?
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
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