The easy and quick answer is : use requestAction() [read manual on how
to do so]

Normally I wouldn't recommend using it though - I'd suggest
refactoring your design so that you don't need to use multiple
controllers. Make fat models and skinny controllers [1], in your home
page controller method [2] load the data from the models, and use
renderElement() in your views to keep the chunks re-usable.

[1] Most of the code dealing with retrieving, sorting and updating
data should be in the model, NOT in the controller
[2] I'd suggest an approach like in the bakery article
http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller

requestAction() is a relatively slow method [although fast to
implement], and I believe that if you "need" to use it, then your
overall design is probably not very well thought through. This is just
a personal opinion, though!

On Oct 4, 7:55 am, jonghoon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm going to make an entrance page of a cakePHP site.
> This entrance page will contain views of more than one controllers,
> for example
>
> <div id="SummaryOfBoardA">
> article 1 of A
> article 2 of A
> article 3 of A
> </div>
>
> <div id="SummaryOfBoardB">
> article 1 of B
> article 2 of B
> article 3 of B
> </div>
>
> <div id="UsersOfBoardA">
> user 1 of A
> user 2 of A ...
> </div>
>
> <div id="UsersOfBoardB">
> ....
> </div>
>
> I already have controllers and views for each section -
>     BoardsController::showSummary( $bordid )
>     BoardsController::showUsers( $boardid )
>     etc.
>
> Is there any other way but to use <IFRAME> ?
> Any suggestions will be welcomed. thanks.


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