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.
On 2 apr, 08:23, "jitka" <[EMAIL PROTECTED]> wrote:
> No 'standard' way how to determine action where requestAction was
> called from (except for $_GET['url'] which is not 'clean usage of
> cake' as You obviously do not need to use $_GET directly in cake).
>
> But: You can pass some parameter to requestAction like
>
> $a = $this->requestAction('/some/url', array('parent_action' =>
> 'whatever');
>
> and then (inside of called method)
>
> if (!empty($this->params['requested'])) look for content of $this-
>
> >params['parent_action']
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---