There are a few ways you can achieve this, depending of course what sort 
of data your're handling. Normally a login box doesn't require any model 
data so you can just make it into an element and have 
$this->element(...) [1] wherever you need your login box to appear. If 
you need to access model data on all your modules you can either use [2] 
the all required models in your controller and pass the data to your 
view or use requestAction [3] to fetch data for another controller.

[1] http://book.cakephp.org/view/97/Elements
[2] 
http://book.cakephp.org/view/51/Controller-Attributes#components-helpers-and-uses-53
[3] http://book.cakephp.org/view/434/requestAction

bmaorlo wrote:
> Hi , I wonder if this is possible  ,
> lets say i have 2 modules
> 1. login box = i made it on folder http://localhost/cake/login/log
> 2. news box = i made it on folder http://localhost/cake/news/show
>
> Now i want to make 1 page that will conteins both of the modules , let
> say that ths url of this page will be
> http://localhost/cake/index.php
>
> i want to design the index.php and place there both of the modules ,
> every one of them should act like he act on his own adress but working
> toghether on the same page .
> is that possible ?
>
> Thanks ahead.
> Maor.
>
> >
>
>   



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to