Yii Framework Forum: Themes - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Themes Rate Topic: -----

#1 User is offline   bmsrox 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 03-August 11

Posted 05 October 2013 - 12:44 PM

É possível instalar um tema so que puxar os arquivos da view dentro da protected?
0

#2 User is offline   alexFidelis 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 17-November 11

Posted 15 October 2013 - 03:09 PM

View Postbmsrox, on 05 October 2013 - 12:44 PM, said:

É possível instalar um tema so que puxar os arquivos da view dentro da protected?



Use a pasta themes que está fora da protected.
Mantenha o formato de pastas:
themes
 /"nomeDoTheme"
  /views
   /layout
   /site
   /"outrosControllers"


Nas configurações do seu app (protected/config/main.php, acrescente:
'theme'=>'"nomeDoTheme"',


sem as aspas duplas ", claro.

This post has been edited by alexFidelis: 15 October 2013 - 03:09 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users