You need to use the 'url' key, not 'action'.

echo $form->create('Portfolio', array('id'=> 'form', 'type' => 'file',
'url' => '/admin/portfolio/add'));

Cheers,
Adam

On Mar 9, 6:40 pm, Mech7 <[EMAIL PROTECTED]> wrote:
> Thanks that works :D
>
> On Mar 9, 12:46 am, Kyle Decot <[EMAIL PROTECTED]> wrote:
>
> > I'm not really sure why it does this because I'm still pretty new to
> > cakePHP but I had the same problem and this is how I solved it:
>
> > echo $form->create(null, array('id'=> 'form', 'type' => 'file',
> > 'action' => '/admin/portfolio/add'));
>
> > Just give it null for the first parameter. I'm not sure if this is the
> > correct solution but it sure worked for 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