Sunday, July 3, 2011

Re: Form-Helper (kind of disfunction)

You mean as a test or as a final solution?

Because this is not what i am want. I want the site to reload and make
the needed changes meanwhile in the beforeFilter action.

Do you understand?

On 28 Jun., 23:19, Francisco ACLima <fac...@gmail.com> wrote:
> try to go directly to the url  in $this->Form->Create
>
> $this->Form->Create('pages',array('url'=>''/admin/pages/display/
> admin_home));
>
> On 24 jun, 19:10, func0der <funco...@web.de> wrote:
>
>
>
>
>
>
>
> > Hey guys,
>
> > i'm having a formular present on all sites with the action for this
> > formular located in the beforeFilter function of the AppController.
> > It's kind of a language switcher. This is because i want to have the
> > action of that formular set to the current site url.
>
> > To create this form i use "$this->Form->create('')" in the view. It is
> > working just fine with controller actions like "/companies/index" but
> > with params like in "/admin/pages/display/admin_home" (in this case it
> > is "admin_home") which is routed to "/admin" it is not working.
>
> > This is because the Form-Helper totally ignores the params given to
> > the method.
>
> > I already tried the return value of "$this->Html->url()" as "action"
> > and/or "url" but because of cake giving this to the
> > "HtmlHelper::url()" function so it gets double based if the app is
> > running in a subfolder.
>
> > Even though normal users are not allowed to submit a ticket please
> > submit one for this problem and fix it.
>
> > Or if there is a solution please tell me ;)
>
> > Greetings
> > func0der

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: