我希望利用名称空间,并使这个文件上的代码上传脚本更安全、更简洁,以下是我到目前为止所拥有的我希望能够在视图文件中使用名称空间,而不会让它看起来很混乱。Image.php $this->connect = $this->dbh->connect(); }
public function upload_image($
,$img); //explde the source to get the image extension $thumbPath = $dest; //destination path of the thumb -- original imageappended
$thumbQuality = 90;