Re: Cake and ThemeView class
it seems we also need to have this directory tree app/view/themed/themeA/view1 app/view/themed/themeA/view2 app/view/themed/themeB/view1 app/view/themed/themeB/view2 plus webroot/themed/themeA/ webroot/themed/themeB/ On 27 nov, 10:00, foxmask <[EMAIL PROTECTED]> wrote: > i made others tests. > var $theme = 'Theme'; in the controller ; call effectivly the > ThemeView class. > > i debug the ThemView class to understand how its working > function __construct (&$controller) { > parent::__construct($controller); > > $this->theme =& $controller->theme; > > echo "my theme ".$this->theme.""; > > if (!empty($this->theme)) { > if (is_dir(WWW_ROOT . 'themed' . DS . $this->theme)) { > $this->themeWeb = 'themed/'. $this->theme .'/'; > echo "my themeWeb ".$this->themeWeb.""; > } > $this->themeElement = 'themed'. DS . $this->theme . > DS .'elements'. DS; > $this->themeLayout = 'themed'. DS . $this->theme . > DS .'layouts'. DS; > $this->themePath = 'themed'. DS . $this->theme . DS; > > echo "".$this->themeElement . " " . $this->themeLayout . " " > . $this->themePath . ""; > > } > } > > i enter in the __construct method all is well define and set > but the files i put in the elements and layouts are not used. > > do i miss somthing else ? > Kind Regards. > > On 27 nov, 08:54, foxmask <[EMAIL PROTECTED]> wrote: > > > Hi, > > i already tried it, and also, as suggest in another thread, copying > > from cake/view/theme.php in the myapp/view directory > > that does not solve the issue. > > may be the theme management is not ready yet . > > Kind Regards. > > > On 27 nov, 02:48, Gwoo <[EMAIL PROTECTED]> wrote: > > > > try setting var $view = 'Theme'; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cake and ThemeView class
i made others tests. var $theme = 'Theme'; in the controller ; call effectivly the ThemeView class. i debug the ThemView class to understand how its working function __construct (&$controller) { parent::__construct($controller); $this->theme =& $controller->theme; echo "my theme ".$this->theme.""; if (!empty($this->theme)) { if (is_dir(WWW_ROOT . 'themed' . DS . $this->theme)) { $this->themeWeb = 'themed/'. $this->theme .'/'; echo "my themeWeb ".$this->themeWeb.""; } $this->themeElement = 'themed'. DS . $this->theme . DS .'elements'. DS; $this->themeLayout = 'themed'. DS . $this->theme . DS .'layouts'. DS; $this->themePath = 'themed'. DS . $this->theme . DS; echo "".$this->themeElement . " " . $this- >themeLayout . " " . $this->themePath . ""; } } i enter in the __construct method all is well define and set but the files i put in the elements and layouts are not used. do i miss somthing else ? Kind Regards. On 27 nov, 08:54, foxmask <[EMAIL PROTECTED]> wrote: > Hi, > i already tried it, and also, as suggest in another thread, copying > from cake/view/theme.php in the myapp/view directory > that does not solve the issue. > may be the theme management is not ready yet . > Kind Regards. > > On 27 nov, 02:48, Gwoo <[EMAIL PROTECTED]> wrote: > > > try setting var $view = 'Theme'; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cake and ThemeView class
Hi, i already tried it, and also, as suggest in another thread, copying from cake/view/theme.php in the myapp/view directory that does not solve the issue. may be the theme management is not ready yet . Kind Regards. On 27 nov, 02:48, Gwoo <[EMAIL PROTECTED]> wrote: > try setting var $view = 'Theme'; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cake and ThemeView class
try setting var $view = 'Theme'; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cake and ThemeView class
any suggestion on how we have to proceed to be able to use themes ? Kind Regards On Nov 26, 4:19 pm, foxmask <[EMAIL PROTECTED]> wrote: > hello, > i'm trying to use this class to be able to use theme with cake but i > really dont know how to do. > i've created : > webroot/themed/foobar/layouts > webroot/themed/foobar/elements > put default.php in layout directory > and in the app_controller did > > public $theme = PT_DEFAULT_THEME; > > class AppController extends Controller { > > public $theme = PT_DEFAULT_THEME; > > public function __construct() { > > parent::__construct(); > }} > > ps : PT_DEFAULT_THEME is set in bootstrap.php. > > Any tips ? > kind regards. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---