and where was the problem?
2012/10/6 Chris <chris...@yahoo.com> > THE PROBLEM IS SOLVED :) > > > On Friday, October 5, 2012 10:58:51 PM UTC-7, Chris wrote: >> >> hi guys,... >> I can't save data in database with cake 1.3,... (it's working on 1.2) >> I'm on upload photos project,.... what am I doing wrong...??? please >> help... >> >> here is my function: >> >> function upload() >> { >> $this->authorize(); >> >> $user = $this->User->findById($this->**user['id']); >> >> $secret = $this->generateRandomString(**20); >> $name = str_replace(array('.jpg', '.jpeg', '.JPG', '.JPEG', '.png', >> '.PNG'), '', $this->params['form']['**Filename']); >> >> $this->Photo->create(); >> if($this->Photo->save(array('**Photo' => array('name' => $name, >> 'user_id' => $this->user['id'], 'secret' => $secret, 'hidden' => 0, >> 'privacy' => array_search($_GET['privacy'], Configure::read('Site.privacy' >> **)))))) >> { >> .......... and the rest of a code.......... >> >> thank you in advance >> chris >> >> >> >> >> -- > Like Us on FacekBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com. > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > -- *Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.