<form action="<?php echo $this->webroot; ?>orders/import/"
enctype="multipart/form-data" method="post">
<p><?php echo $form->file('import'); ?></p>
<p><?php echo $form->submit('Import'); ?></p>
</form>
On Nov 28, 2:06 pm, Baz <[EMAIL PROTECTED]> wrote:
> What's in the view?
>
> On Nov 28, 2007 3:47 PM, Luke <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a completely BLANK controller... all it is is this:
>
> > function import()
> > {
> > }
>
> > in my view I have a form with a file upload element in it. whenever I
> > press "submit" I get this error on the top of the page "Warning (2):
> > Invalid argument supplied for foreach() [CORE\cake\dispatcher.php,
> > line 381]" WHY? :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---