could use <?php echo $form->create("Import",array('type'=>'file')); ?>



On Nov 28, 2007 3:16 PM, Luke <[EMAIL PROTECTED]> wrote:
>
> <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? :(
> >
>



-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

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

Reply via email to