Comparing
#2 with
#3
Content
[...]
return true;
}
return false;
}
public function getFile($id) {
$encodedFile = iconv('UTF-8', 'greek//TRANSLIT//IGNORE', $this->name_file);
$path = 'images/' . $encodedFile;[...]
}
$this->render('create', array('model'=>$model));
}
public function actionView($id) {
$this->loadModel($id)->getFile();
}
```
The left code is similar to this wiki[...]