I am new to YII and this forum. Before posting i have searched the forum but not got any helpful simple explanation on my problem.
I want to create a dropdown menu for my Status column which should display low,medium and high. After reading the cookbook i have done the below steps.
Earlier i have tested giving the constants as string but it was giving exception error at that time. I don’t know what went wrong at that time.
Now i have done as per your suggestion and it is working as expected and the values are going in database as string. Yesterday i wasted almost 4Hrs googling for this solutions. Thanks a lot for your help.
Yes i mean CGridView as i am new to YII so don’t know the term.
I have copied the entry in CGridView and it is working but now there are two columns showing of Status field,
the one which was earlier and the other one of dropdown after copying the code, so i commented the earlier entry in CGridView.
After commenting now it is showing only the dropdown one.
Let me know what i have done is correct or not. or should i delete the entry