always use the array structure
and you will be fine:
<?php echo $this->Form->create('Modelname', array('url' =>
array('action'=>'add'))); ?>
etc
On 13 Dez., 10:41, Almudena Garcia <[email protected]> wrote:
> Could you paste here your form code?
> You may be doing something different to this...
>
> <?php echo $form->create(null, array('url' => '/posts/add')); ?>
>
> Have you put the initial slash? or this?
>
> <?php echo $form->create(null, array('url' => 'posts/add')); ?>
>
> regards.
>
> 2010/12/12 jdabgotra <[email protected]>
>
>
>
>
>
>
>
> > I'm doing the CakePHP Blog Tutorial, starting out. Everything is going
> > fine except URLS like this:
>
> >http://localhost/index.php/posts/add
>
> > Are being generated like this:
>
> >http://localhost/index.php/posts/posts/add
>
> > In the form method tag, this is generated, so I cannot successfully
> > add a blog post.
>
> > Thank you,
>
> > James
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]
> > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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