tonydspaniard / yiinitializr-advanced

Yii Framework project structure boilerplate for advanced application requirements
67 stars 30 forks source link

/frontend/www/themes does not exist #22

Open Avtonom opened 10 years ago

Avtonom commented 10 years ago

where I create the theme files?

ROOT/themes/THEMES_NAME/views/* ?

thinmy commented 10 years ago

You need to specify in config the theme name liki ( 'theme' => 'themeName', ), after you create the folder inside the folder ('/www/themes/themeName') of each environment, ('Yii::app()->theme->baseUrl') is point to this folder.

http://www.yiiframework.com/doc/guide/1.1/en/topics.theming#creating-a-theme

themes/ themeName/ views/ .htaccess layouts/ # main layouts files # main.php site/ # controller views # index.php

p2made commented 10 years ago

Alternatively, if you're only using one theme for each environment, simply put the files directly in the views folders.