Thanks. I got it works. Just as you said, copy the theme.php into view folder and do some css/ layout code for theme like Classic. Edit the app_controller.php to load the var$theme="Classic".
It just works.! BUT, I am not clear the one you use in your cheese. As you said in the app_controller, you use a function beforeFilter( ) to hack and set the configuration values from DB. AND, you use a compoent app_init.php in the beforeFilter to do the hack one. Now, the problems comes. How the logical to do this? How to load data from config model and then into session? I just wanna do a simple one: 1. Users can choose the theme, like Classic or Morden from the beginning. How to pass a value to var $theme='$t' ? Thanks. Another silly question. "Dr. Tarique Sani 写道: " > On 11/14/06, Eric <[EMAIL PROTECTED]> wrote: > > Sry for the late reply. > > I really wanna start. BUT, I am confuse also. > > Where should I start? > > The controller? or ?.... > > After you put theme.php in your views folder > > Start with your app_controller.php put > > var $view = 'Theme'; > var $theme = "YourTheme" > > YourTheme is a folder in your views as well a webroot > > Once again see cheesecake code for the organization of files - > cheesecake by default has two themes Classic and Modern > > Once you get the hardcoded "YourTheme" working you can think about how > to change that value using either DB or user input etc > > This should get you started > > 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 [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?hl=en -~----------~----~----~----~------~----~------~--~---
