Setting theme.


(Uday Kumbhar2009) #1

I am a new programmer in php and Yii framework. I want to set theme in yii framework

How do I set theme in Yii framework?

and also how do i create widget in yii?


(Molnargerg) #2

[html]In the application configuration, if we configure

return array(

'theme'=>'basic',


......

);[/html]

quoted form here: http://www.yiiframework.com/doc/guide/1.1/en/topics.theming

create a widget:

http://www.yiiframework.com/doc/guide/1.1/en/basics.view#widget


(Uday Kumbhar2009) #3

Thanks.

I have changed theme easily. But I can’t understand in detail about widgets.

How do i create widget step by step?

Can you tell Me?


(Molnargerg) #4

here is a short article about it:

http://www.yiiframework.com/wiki/23/how-to-create-a-breadcrumb-widget

let me know if it doesn’t help and I will write a more detailed one.


(Uday Kumbhar2009) #5

I mean to say that, a widget in which i have tree view type menu as per user roles.

i am going to develop a store management system. This widget should help me.

Is there any possibility?


(Molnargerg) #6

sorry but I don’t understand what you mean.


(Uday Kumbhar2009) #7

I want to say that, a widget that generates menu based on database.


(Molnargerg) #8

why don’t you use CMenu? you can generate the array of items from your database.


(Uday Kumbhar2009) #9

How do i do it?

Can you give me an example or tutorial in detail?


(Elena Lee9) #10

how to set different themes

============


(Gaurishpatil) #11

Hi,

you can set theme as per action also…


Yii::app()->theme='themename';