Element is regular php file ? or it have some "special" abillity like
every module in the cakephp ?
what kind of stuff can i do with those elements ?
Thanks for the help .
Maor.
On Jan 2, 2:09 pm, Bernardo Vieira <bvieira.li...@gmail.com> wrote:
> 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-help...
> [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 folderhttp://localhost/cake/login/log
> > 2. news box = i made it on folderhttp://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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment