Fehler beim festlegen unsichere Attribut

Hallo ich habe eine Warnung " string im log, während insert-und update-Aktion

2013/02/05 16:43:57 [warning] [application] Failed to set unsafe attribute "logo" of "Model".

Regeln für Modell

public function rules()
{
    return array(
        array('typeId, cityId, new', 'numerical', 'integerOnly'=>true),
        array('title, url', 'length', 'max'=>255),
        array('content, created, deleted', 'safe'),

        array('url', 'url', 'on'=>'insert, update'),

        array('typeId, cityId, title', 'required', 'on'=>'insert, update'),

        array('logo', 'file', 'types'=>'jpg, jpeg, gif, png', 'maxSize'=>100*1024, 'allowEmpty'=>true, 'tooLarge'=>'{attribute} is too large to be uploaded. Maximum size is 100kB.'),

        array('id, typeId, cityId, title, content, new, url, logo', 'safe', 'on'=>'search'),
    );
}

Ich kann nicht verstehen, warum ich dieses worning. Ich habe die Regel für das logo-Feld und haben allowEmpty option für Sie

InformationsquelleAutor dr0zd | 2013-02-05
Schreibe einen Kommentar