I see.  I wonder if requestAction could help you there?
The cake manual page seems to infer that it might do what you want.

Here's an excerpt from http://manual.cakephp.org/chapter/controllers

If you have an often used element in your application that is not
static, you might want to use requestAction() to inject it into your
views. Let's say that rather than just passing the data from
UsersController::getUserList, we actually wanted to render that
action's view (which might consist of a table), inside another
controller. This saves us from duplicating view code.
class ProgramsController extends AppController
{
    function viewAll()
    {
        $this->set('userTable', $this->requestAction('/users/
getUserList', array('return')));

        // Now, we can echo out $userTable in this action's view to
        // see the rendered view that is also available at /users/
getUserList.
    }
}

Please note that actions called using requestAction() are rendered
using an empty layout - this way you don't have to worry about layouts
getting rendered inside of layouts.


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