On Jan 24, 7:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> So I use requestAction but perhpas I am wrong.
>
> So my need is in a Controller A to catch the output of an action of
> Controller B in order to use it AND to cach this action in order to
> take all the advantage of cached action for the users how will use this
> action.
>
> Perhaps Need I to to use $Dispatcher->dispatch($argv[1]);. I will try
> it today.
>
> On Jan 24, 5:50 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
>
> > On 1/24/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> > > As I understand it, requestAction simply returns a TRUE or FALSEFALSE :)
>
> > $this->requestAction('/users/getUserList', array('return'));
>
> > Will return the HTML rendered by the action and will use an empty layout
>
> > Cheers
> > Tarique
> > --
> > =============================================================
> > PHP for E-Biz:http://sanisoft.com
> > Cheesecake-Photoblog:http://cheesecake-photoblog.org
> > =============================================================

Hi wluigi,

You could override the requestAction function of your controller to
check for and write to the cache if you want, it should be unnecessary
to call the dispatcher directly or do anything 'naughty'. IMO it's a
pretty good thing that RA calls don't get cached automatically.

3 Questions though:
1) Does the controller method logic you are RequestActioning belong in
the appropriate model
2) Does the view code you are RequestActioning belong in an element
3) Does that remove the need to use requestAction

The answer to all three is not necessarilly yes, but it usually is.

HTH,

AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
The cake search (at the time of writing) erroneously reports less/no
results for the google group.
The wiki may contain incorrect info - read at your own risk (it's
mainly user submitted) :) You may get your answer quicker by asking on
the IRC Channel (you can access it with just a browser
here:http://irc.cakephp.org).


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