Yii Framework Forum: How to apply new theme in Yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

How to apply new theme in Yii Rate Topic: -----

#1 User is offline   clive 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 07-April 12

Posted 11 June 2012 - 01:07 PM

Hello, I have downloaded a new theme for yii, i'm only a beginner, how can I apply the new theme in my yii site?
0

#2 User is offline   bit0123 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 01-February 12
  • Location:Bangladesh

Posted 11 June 2012 - 01:27 PM

Take a look at this.
This will help.
0

#3 User is offline   clive 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 07-April 12

Posted 11 June 2012 - 09:06 PM

thank you i checked the link but its hard to understand for a beginner, im only new to OOP is it possibe to gave a more specific example? thank you.
0

#4 User is offline   CPzee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 57
  • Joined: 11-November 11
  • Location:Sri Lanka

Posted 11 June 2012 - 10:23 PM

Put the theme in to themes folder in your application.
Jst try it by adding 'theme'=>'name of ur theme' in to protected/config/main.php
Found anything useful???? Pls click +
Ubuntu 12.04--PHP 5.3.10(Yii v1.1.13)
0

#5 User is offline   clive 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 07-April 12

Posted 11 June 2012 - 11:48 PM

View PostCPzee, on 11 June 2012 - 10:23 PM, said:

Put the theme in to themes folder in your application.
Jst try it by adding 'theme'=>'name of ur theme' in to protected/config/main.php



hello thanks for the reply but its not working so far, would mind taking a look in my syntax? i already put the theme in the themes folder of my application: C:\xampp\htdocs\yiisite\themes\wpcraft


'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
//tell the application to use your WebUser class instead of the default CWebUser
'class'=>'WebUser',
'theme'=>'wpcraft',
),

0

#6 User is offline   redguy 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 588
  • Joined: 02-July 10
  • Location:Central Poland

Posted 12 June 2012 - 04:29 AM

not:

View Postclive, on 11 June 2012 - 11:48 PM, said:

'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
//tell the application to use your WebUser class instead of the default CWebUser
'class'=>'WebUser',
'theme'=>'wpcraft',
),



but:

'theme'=>'wpcraft',
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
//tell the application to use your WebUser class instead of the default CWebUser
'class'=>'WebUser',
),

red
0

#7 User is offline   clive 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 07-April 12

Posted 12 June 2012 - 06:06 AM

View Postredguy, on 12 June 2012 - 04:29 AM, said:

not:


but:

'theme'=>'wpcraft',
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
//tell the application to use your WebUser class instead of the default CWebUser
'class'=>'WebUser',
),




thanks a lot men it worked ;D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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