The problem seemed to be that I cannot pass the variable $this->name
through requestaction. So that's another reason (apart from loading
times) to use your 'mini-controllers' approach in this case. Thnx,
it's working now!

Is your mini-controllers method ever going to be a standard part of
Cake? Because if requestAction is so heavy this is a great workaround!



On 2 apr, 12:30, "AD7six" <[EMAIL PROTECTED]> wrote:
> On Apr 2, 12:19 pm, "gerbenzomp" <[EMAIL PROTECTED]> wrote:
>
> > I tried both your examples, but the problem seems to be that I use the
> > requestaction within default.thtml, and it seems there's no data
> > available about the parent action...
>
> > Is there some other way, because now I use the $_GET['url'] method,
> > which is just very dirty and unreliable.
>
> a layout is processed by an instance of the class view (as is a
> 'view') and $this->name and $this-action will be available for you to
> use; aswell as other bits of info which you'll see with pr($this);
> die; in the layout. When in the layout there is no parent action, as
> you don't get a layout using requestAction.
>
> You may find though that using requestAction on every page (does this
> change at all?) will add significantly (approx 30% min.) to your page
> load times. You are probably better off simply using a component to
> get whatever this plugin is processing, and an element to display it.
> If the data doesn't change the component and/or element can refer to a
> cached source of info.
>
> HTH,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
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