doghen писал(а):Здравствуйте! Объявления о продаже "Продам" отображаются как "Сдам"
if (!in_array($type, self::$_type_arr)) {
return self::$_type_arr[min(Apartment::availableApTypesIds())];
}
if (!in_array($type, array_keys(self::$_type_arr))) {
return self::$_type_arr[min(Apartment::availableApTypesIds())];
}
public function afterSave() {
if($this->saveObjTypes){
$sql = "DELETE FROM {{formdesigner_obj_type}} WHERE formdesigner_id=:formdesigner_id";
Yii::app()->db->createCommand($sql)->execute(array(
':formdesigner_id' => $this->id,
));
if($this->saveObjTypes){
foreach($this->saveObjTypes as $typeID){
$formDesignerType = new FormDesignerObjType();
$formDesignerType->formdesigner_id = $this->id;
$formDesignerType->obj_type_id = $typeID;
$formDesignerType->save();
}
}
}
return parent::afterSave();
}
public function afterSave() {
$sql = "DELETE FROM {{formdesigner_obj_type}} WHERE formdesigner_id=:formdesigner_id";
Yii::app()->db->createCommand($sql)->execute(array(
':formdesigner_id' => $this->id,
));
if($this->saveObjTypes){
foreach($this->saveObjTypes as $typeID){
$formDesignerType = new FormDesignerObjType();
$formDesignerType->formdesigner_id = $this->id;
$formDesignerType->obj_type_id = $typeID;
$formDesignerType->save();
}
}
return parent::afterSave();
}
public function afterSave() {
if ($this->scenario == 'save_types') {
$sql = "DELETE FROM {{formdesigner_obj_type}} WHERE formdesigner_id=:formdesigner_id";
Yii::app()->db->createCommand($sql)->execute(array(
':formdesigner_id' => $this->id,
));
}
if($this->saveObjTypes){
foreach($this->saveObjTypes as $typeID){
$formDesignerType = new FormDesignerObjType();
$formDesignerType->formdesigner_id = $this->id;
$formDesignerType->obj_type_id = $typeID;
$formDesignerType->save();
}
}
return parent::afterSave();
}
if (Yii::app()->user->isGuest){
throw404();
}
sharky001 писал(а):Добрый день
imagejpeg(): Unable to open '/var/www/realty/data/www/name.ru/uploads/objects/29/modified/thumb_60x45_722e4e0d81b315fb1c63b55aab347e2e.jpg' for writing: Permission denied
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 75