codeigniter-twiggy icon indicating copy to clipboard operation
codeigniter-twiggy copied to clipboard

many themes

Open oniricosistemas opened this issue 11 years ago • 1 comments

hi, sorry for my English.... ;)

is possible to have a structure like this : themes          admin                     _layouts                             index.html.twig                     index                             index.html.twig                             edit.html.twig                     products                             index.html.twig                             edit.html.twig                     news                             index.html.twig                             edit.html.twig                     index.html.twig         default                     _layouts                             index.html.twig                     home                              index.html.twig                              menu.html.twig                     contact                               index.html.twig                     index.html.twig

I tried with this: $ this -> twiggy - > theme ( 'admin '); echo $ this-> twiggy -> get_theme ( ) ; / / return admin echo "
" . $ this -> twiggy -> get_layout ( ) ; / / return index $ this -> twiggy -> display (' products / index' ) ; but always shows the default / index.html.twig

thanks!

oniricosistemas avatar Nov 02 '13 18:11 oniricosistemas

Hi, I'm late, but I say it, just in case... I edited this file for that : "sparks/Twiggy/x.x.x/libraries/Twiggy.php" I replaced the line 473 with this : array_unshift($this->_template_locations, $loc . $this->_module . '/' . $this->_config['themes_base_dir'] . $theme); I did the same thing with the line 479 and this code : array_unshift($this->_template_locations, $this->_themes_base_dir . $theme);

florianorineveu avatar Mar 09 '15 00:03 florianorineveu