// Read theme config files from Config directory from within selected theme
Configure::config('theme', new PhpReader(APP . 'View' . DS . 'Themed'
. DS . $this->theme . DS . 'Config'));
// load config file from theme configs
Configure::load('bootstrap', 'theme');https://github.com/cakephp/docs/blob/master/en/development/configuration.rst#reading-and-writing-configuration-files - S +44 (0)7908 069 219 On 23 January 2013 09:30, Lucky1968 <[email protected]> wrote: > Hi Sams, > > Yes, I would like to add a bootstrap.php to my theme folder which needs to > extend/overrule the app/Config/boottrap.php file. > > Any idea on how to do this? > > On Thursday, October 18, 2012 12:00:40 AM UTC+2, sams wrote: > >> Do you want a bootstrap.php within your theme like you have one in >> APP/Config/? >> Or are you using a php file to 'do more' with a request to a css file? >> >> I think perhaps croogo might be doing something akin to what your doing >> if you want per-theme config >> croogo 1.3 uses yaml & 1.4 uses json >> - S >> >> >> >> >> On 17 October 2012 07:57, Lucky1968 <[email protected]> wrote: >> >>> Hi Paul, >>> >>> Thanx for this info. I understand how it should work but it doesn't work >>> in my system. >>> >>> Maybe the problem is because $this->Html->css looks for a bootstrap.css >>> instead of a bootstrap.php? >>> >>> On Thursday, October 11, 2012 1:36:19 PM UTC+2, Paulo Henrique wrote: >>>> >>>> bootstrap.php => https://github.com/**hugodias**/cakeStrap/blob/** >>>> master/app/**Config/bootstrap.**php#L173<https://github.com/hugodias/cakeStrap/blob/master/app/Config/bootstrap.php#L173> >>>> >>>> default.ctp => https://github.com/**hugodias**/cakeStrap/blob/** >>>> master/app/**View/Layouts/**default.ctp#L21<https://github.com/hugodias/cakeStrap/blob/master/app/View/Layouts/default.ctp#L21> >>>> >>>> Em quarta-feira, 10 de outubro de 2012 03h14min42s UTC-3, Lucky1968 >>>> escreveu: >>>>> >>>>> Does anyone know how to integrate a bootstrap.php in a theme and how >>>>> to open it dynamically? >>>>> >>>>> In my bootstrap.php I have certain settings which should change >>>>> according to the selected theme so I would like to put a bootstrap.php >>>>> file >>>>> into the theme folder which should be called dynamically according to the >>>>> selected theme. >>>>> >>>>> But how to do this? >>>>> >>>> -- >>> Like Us on FaceBook >>> https://www.facebook.com/**CakePHP<https://www.facebook.com/CakePHP> >>> Find us on Twitter http://twitter.com/CakePHP >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "CakePHP" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to cake-php+u...@** >>> googlegroups.com. >>> >>> Visit this group at >>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en> >>> . >>> >>> >>> >> >> -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
