Re: Model update problems
Delete that model cache (app/tmp/cache/model). And test with at least debug=1 that force cake to reload cache on its own. On Sep 23, 10:37 am, Matias_castro wrote: > Hi everyone! > > I had a running simple application in wich you were able to see images > in an image gallery. The problem started when I tried to add a Thumb > image. I changed the model in my database by adding a new column > 'thumb_url' so I could save the thumb address of an image. The thing > is that I can't get to save nor read anything in/from that new column > (I'm doing exactly the same than before but with one extra line: > $this->data['new']['thumb_url'] = $thumb_url;). > > Is there any other thing that I should do to force cake to recognize > that new column?? > > I would really appreciate some help here!! > > Thanks a lot! --~--~-~--~~~---~--~~ 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Model update problems
Try changing this line: $this->data['new']['thumb_url'] = $thumb_url;). into: $this->data['YourModelNameHere']['thumb_url'] = $thumb_url;). In case it doesn't change anything, please provide more information, code (controller and model), table definitionsetc. so we have a chance of understanding what may be your problem. Enjoy, John On Sep 23, 6:37 am, Matias_castro wrote: > Hi everyone! > > I had a running simple application in wich you were able to see images > in an image gallery. The problem started when I tried to add a Thumb > image. I changed the model in my database by adding a new column > 'thumb_url' so I could save the thumb address of an image. The thing > is that I can't get to save nor read anything in/from that new column > (I'm doing exactly the same than before but with one extra line: > $this->data['new']['thumb_url'] = $thumb_url;). > > Is there any other thing that I should do to force cake to recognize > that new column?? > > I would really appreciate some help here!! > > Thanks a lot! --~--~-~--~~~---~--~~ 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Model update problems
Hi everyone! I had a running simple application in wich you were able to see images in an image gallery. The problem started when I tried to add a Thumb image. I changed the model in my database by adding a new column 'thumb_url' so I could save the thumb address of an image. The thing is that I can't get to save nor read anything in/from that new column (I'm doing exactly the same than before but with one extra line: $this- >data['new']['thumb_url'] = $thumb_url;). Is there any other thing that I should do to force cake to recognize that new column?? I would really appreciate some help here!! Thanks a lot! --~--~-~--~~~---~--~~ 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---