0

In a Yii project I have the structure:

project/
    ... default Yii structure here ...
themes/
    css/
    font/
    images/
    js/
    views/
        admin/
        layouts/
        site/

How to configure Gii to generate CRUD in themes folder?

Maykonn
  • 2,738
  • 6
  • 33
  • 51
  • 1
    bad idea, if you want to generate the controller and views under themes; the controller needs to be protected – Ionut Flavius Pogacian Aug 08 '13 at 21:49
  • not to mention that the modules cient/admin wont work – Ionut Flavius Pogacian Aug 08 '13 at 21:51
  • Crud is crud, themes are themes. They are like wrappers or skins. Read more here http://yiiframework.ru/doc/guide/en/topics.theming – ineersa Aug 09 '13 at 06:50
  • I'm newbie in Yii. Still do not understand what are CRUD in Yii. If we have a MVC and themes, because we have a generation of CRUD? – Maykonn Aug 09 '13 at 13:39
  • @IonutFlaviusPogacian I do not want to generate controllers, etc.. in themes. I want to generate only views in themes. – Maykonn Aug 09 '13 at 14:00
  • 1
    let gii to generate them where he wants, then set the theme as needed, then move the view files in the theme folders so that the path is the same as a standard path; the controller should search for the view files in the standard place and then in the theme folders – Ionut Flavius Pogacian Aug 09 '13 at 22:50
  • It's exactly what I'm having to do. But manually move was not what I wanted. – Maykonn Aug 10 '13 at 15:22

0 Answers0