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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to