Yii Framework Forum: Cannot Change Theme For Modules - Yii Framework Forum

Jump to content

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

Cannot Change Theme For Modules Rate Topic: -----

#1 User is offline   T.M. 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 20-January 14

  Posted 17 March 2014 - 12:00 PM

hi I repost here again, refer to::

http://www.yiiframew...406#entry242406

I cannot set a theme to modules. How can I do that?
0

#2 User is offline   skworden 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 174
  • Joined: 14-June 12
  • Location:Virginia, USA

Posted 17 March 2014 - 08:16 PM

<?php
class YourModule extends CWebModule
{
	public function init()
	{
    	Yii::app()->theme='YourthemeName';
	}
}
;?>

0

#3 User is offline   T.M. 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 20-January 14

Posted 18 March 2014 - 02:37 AM

View Postskworden, on 17 March 2014 - 08:16 PM, said:

<?php
class YourModule extends CWebModule
{
	public function init()
	{
    	Yii::app()->theme='YourthemeName';
	}
}
;?>





However, the very first reply of the referred link (from me actually), did not work. Have you tried?
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