dear ivnrmc, all I'm having a problem is with saving to a database...
the upload is working,... all I need is to save in db,... I follow the book
instruction and could not save it too...
this code is working in 1.2 version
if($this->Photo->save(array('Photo' => array('name' => $name,
download the meio upload and use it as a behavior for your model. this will
solve all of your problems, setting it up is minimal.
2012/10/6 Chris
> I'm uploading photos in webroot/photos ... and its working,... the only
> thing is it need to add to a database after upload, which is not doing,
I'm uploading photos in webroot/photos ... and its working,... the only
thing is it need to add to a database after upload, which is not doing,...
here is whole function:
function upload()
{
$this->authorize();
$user = $this->User->findById($this->user['id']);
if(!($us
what are your error? this code is on very big mess. I don't know what are
you trying to do, but you should clean and simplify all of this.
2012/10/5 Chris
> hi guys,...
> I can't save data in database,... I'm on cake 1.3 what am I doing
> wrong...? can anyone help please,?
> thanks in advanc
hi guys,...
I can't save data in database,... I'm on cake 1.3 what am I doing wrong...?
can anyone help please,?
thanks in advance
$this->Photo->create();
if($this->Photo->save(array('Photo' => array('name' => $name,
'user_id' => $this->user['id'], 'secret' => $secret, 'h