I am quite confused about the whole process.

OK. When the page opend, it fetchs the config.theme from the db, like
modern, and then pass it to the Theme.php to handle the rest of the
thing ?

Like normal way, m-v-c, I understand some. The View display for forend,
like input, and all layout. Of course, we can modify the file in foler
layout to do some customerize.

BUT, I dont clear about the theme thing. As you said, if I choose the
theme like modern, it doesn't contain any files, css, it will back to
display the normal way.

Is the Theme.php just jump in to 'load' the theme by users?

I am just newbie. Wanna to know more and clear.

Thanks. The cheese is really cheese. It contains lots of function. A
excenllent sample about how to use Cake.





"Dr. Tarique Sani 写道:
"
> On 11/12/06, Eric <[EMAIL PROTECTED]> wrote:
>  > BUT, I dont know how to relate the theme and just use it.
> >
> > Can U explain it futhure more ?
>
> Take a look at the code of ThemeView at
>
> https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/cheesecake/views/theme.php?rev=218&root=cheesecake&view=markup
>
> Specially line
>
> $this->theme =& $controller->theme;
>
> This is what is needed - In cheesecake we set this via the
> $controller->theme which in turn is set in the appInit component.  If
> this feels complicated then
>
> $this->theme = "yourthemename" ;
>
> Hard coded will also work - so it is up to your code as to how it sets
> the value of $this->theme in ThemeView and it will work
>
> Cheers
> Tarique
>
>
> --
> =============================================================
> PHP Applications for E-Biz: http://www.sanisoft.com
> Coppermine Picture Gallery: http://coppermine.sf.net
> =============================================================


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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