Sunday, November 30, 2008

Re: How to use Prefix Routing for form submit

Thanks Kyo,

Your solution is working fine but sometimes I am not using URL as form
action in this case I am finding problem...

like if url is
http://localhost/test/education/blogs/add/

and I want to handale form post action on education_index then your
suggested solution is not working....

Please tell me how should I do this?

Thanks


On Nov 28, 6:54 pm, Kyo <ready2jam2ni...@yahoo.co.jp> wrote:
> Try something like:
>
>         echo $form->create(null, array('url'=>"/{$this->params['url']
> ['url']}"));
>
> $params['url']['url'] holds the url of the current page.
> That should do the trick.
>
> hth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: