and as I said with
('url' => '/'.$this->params['url']['url'])
it has to post to itself

maybe you have some kind of Auth or redirect in between


On 7 Jul., 20:54, func0der <funco...@web.de> wrote:
> It should post to the actual site on whichever site i am.
>
> This means if i am on "/admin" the action is "/admin" and if i am on "/
> admin/users/index" the action is "/admin/users/index".
> The second one is working perfectly. But the first one not, like
> mentioned in the first post.
>
>  The analysis of those post data is done in the beforeFilter function
> of the AppController. This is because all other actions depend on that
> settings.
>
> On 7 Jul., 00:48, euromark <dereurom...@googlemail.com> wrote:
>
>
>
>
>
>
>
> > i see :L)
>
> > where does it post to then?
>
> > On 7 Jul., 00:13, func0der <funco...@web.de> wrote
>
> > > no! it is "admin_home" because i want it to be like that ^^
> > > It's only the page or better the view i want to open. That has nothing
> > > to do with the problem itself.
>
> > > And b): isn't working!
>
> > > On 4 Jul., 00:15, euromark <dereurom...@googlemail.com> wrote:
>
> > > > a) its not admin_home but home:
> > > > ('url'=>''/admin/pages/display/home")
> > > > the admin prefix is already implicitly attached
>
> > > > b) you are probably looking for
> > > > ('url' => '/'.$this->params['url']['url'])
> > > > which always posts exactly to itself (which will be the default in 2.0
> > > > anyway)
>
> > > > On 3 Jul., 22:31, func0der <funco...@web.de> wrote:
>
> > > > > 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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to