Yii Framework Forum: whether this is the correct way to Theming? - Yii Framework Forum

Jump to content

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

whether this is the correct way to Theming? Rate Topic: -----

#1 User is offline   Dan Din Dun 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 09-February 10

Posted 17 February 2010 - 11:59 PM

Hi sir,

I try to sett theming automatically.

so I just change view location :
Yii::app()->setViewPath(Yii::app()->getBasePath() . '/../themes/default/views/');


is it correct way?

I get the problem when I change the view location:
the problem is. when I call widget in protected/components/views, it is not found.
when I use this script:

$this->widget('AdminMenu')

it was failed.

please tell me how to use theming correctly? I want to change default views location on "protected/views/" into "themes".

thanks
Thanks and Kind Regards
------
DanDinDun
0

#2 User is offline   Dan Din Dun 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 09-February 10

Posted 18 February 2010 - 12:10 AM

hallo... :-(
Thanks and Kind Regards
------
DanDinDun
0

#3 User is offline   bettor 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 751
  • Joined: 02-February 09

Posted 19 February 2010 - 04:19 AM

have you configured theming in your application configuration. I haven't used themes but I am just reading the documentaion:

In the application configuration, if we configure
return array(
    'theme'=>'basic',
    ......
);


cheers,
b
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