Re: putting 2 modules on the same page

2009-01-02 Thread bmaorlo

Thanks , and this re-usable view can have a controller ?
If i want this view to take data from DB for example "login box" .
How do i do the logic part on this view ?

Thanks.

On Jan 3, 12:04 am, WebbedIT  wrote:
> An element is simply a re-usable view ... rather than repeat a whole
> view or a part of a view which is used multiple times across your app,
> create a single element and use that across multiple views.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: putting 2 modules on the same page

2009-01-02 Thread bmaorlo

Thanks for the help but i got 1 more question.
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  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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



putting 2 modules on the same page

2009-01-02 Thread bmaorlo

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



How do i change the default tamplate of cakephp ?

2009-01-01 Thread bmaorlo

i mean to the blue one that on the top there is the logo
CakePHP: the rapid development php framework
and all the CSS is like the cakephp CSS.
how can i change this ?
Is there any production mode that will take automaticlly my css ??
Thanks,
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
-~--~~~~--~~--~--~---