page Settgins ready
This commit is contained in:
parent
c26d0e1ddf
commit
c2c411cf34
|
@ -130,7 +130,7 @@ public function saveAndUpload($data){
|
||||||
$dataSource->begin();
|
$dataSource->begin();
|
||||||
$result = $this->saveAssociated($data);
|
$result = $this->saveAssociated($data);
|
||||||
if($result){
|
if($result){
|
||||||
$filename = $data["DreamjobPageInh"]['user_id'] . "_-_p" . $this->id .".". pathinfo($data[$this->alias]['image']['name'], PATHINFO_EXTENSION);
|
$filename = $data["DreamjobPageInh"]['user_id'] . "_-page-_" . $this->id .".". pathinfo($data[$this->alias]['image']['name'], PATHINFO_EXTENSION);
|
||||||
$filename = WWW_ROOT . $this->uploadDir . DS . $filename;
|
$filename = WWW_ROOT . $this->uploadDir . DS . $filename;
|
||||||
|
|
||||||
if (!move_uploaded_file($data[$this->alias]['image']['tmp_name'], $filename)) {
|
if (!move_uploaded_file($data[$this->alias]['image']['tmp_name'], $filename)) {
|
||||||
|
|
Loading…
Reference in New Issue