Wednesday, August 29, 2012

Temporarily disable 'modified'

-set 'modified' => false
eg:
  function view($id){  
      $this->data=$this->Item->read(null,$id);  
      $this->data['Item']['view']+=1;  
      $this->data['Item']['modified']=false;  
      $this->Item->save($this->data);  
 }  

No comments:

Post a Comment