hi sergei
there are several solutions to do that.
as far as I know, the two more convenient solutions are :
(1) using requestAction, with which you can call any action of any
controller from any other page (including a "static" Page controlled
by the default PagesController).
(2) create some other controller (together with other views), which
has "var $use = array('User','Message')" ... this way you can write
custom controller methods.
to me the use of each technique depends on what you want to do : I
personally use the first solution for the "home page" of my app, which
shows some infos on from each controller, and leads the user to the
several parts of my site, and I use the second solution when I want to
build a custom "ProgramController" which combines the use Event and
Day models through different custom association methods...
I hope this helps.
++++++++
clément
On 6/29/06, Sergei <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I just started to learn Cake and I have a question:
>
> let's say I have users and messages controllers.
>
> They have some actions /users/* /messages/* etc.
>
> And I need to put some information about users and messages into
> homepage /.
>
> What do I need to create for this homepage - another controller and
> view? Please explain. I didn't found such info in the manual.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---