whether this is the correct way to Theming?

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

hallo… :frowning:

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