i've not worked with themes before - but surely you could iterate your themes folder from within the application bootstrap.php and look for a bootstrap file for the loaded theme - and if it exists include it at that point?
I do a similar thing with some settings stored as YAML for plugins (hooks/dependencies/menu items are described in yml files for each plugin, a helper finds and merges them everytime the menu is called from outside cache) On Wed, Oct 10, 2012 at 4:14 PM, Lucky1968 <[email protected]> wrote: > 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 > 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.
