CDetailView Error: Trying to display image from database

Hi there,

I’m quite new to Yii and therefore haven’t got a lot of experience. Bare with me :)

I have a model basically displaying real estate offers. Part of this model are of course images, which are saved in the database. My problem however is displaying these images. I dont want to write a controller especially for displaying (or dont know how) as I’d like to keep everything together (displaying the whole model with 1 controller).

In the Moment i get following error upon calling the view:

The attribute must be specified in the format of "Name:Type:Label"

I havent really added any code for displaying the image, only for saving it. So if you need some code from me just tell me what! I’m fairly sure the problem isn’t with the CDetailView-Widget (which throws the error) as all of my attributes are in the desired format…

$this->widget('zii.widgets.CDetailView', array(








Can you help me with this please?

PS: Using: Yii 1.1.9, Apache, MySQL, Windows / Image saved as ‘blob’ type

The solution was removing the special characters from all names in CDetailView (eg. é or ä)… -.- Can be closed