I do store in my model also a 'Type' attribute, as some users should see a drop down, other not.
But the above does throw an error:
htmlspecialchars() expects parameter 1 to be string, object given.
I tried already (just to see if it is working) to set the type without the model, like this:
'type' => function($model) { return 'text'; },
Gives me the same error. I can do that on values, etc but not on the type.
hmmm.
is there a workaroud?
Hi, I have something like this:
I do store in my model also a 'Type' attribute, as some users should see a drop down, other not. But the above does throw an error: htmlspecialchars() expects parameter 1 to be string, object given. I tried already (just to see if it is working) to set the type without the model, like this:
Gives me the same error. I can do that on values, etc but not on the type. hmmm. is there a workaroud?