You're the best, that's just the exact thing I need! Really, really thanks! ark0n3
On 12 Dic, 23:20, mark_story <mark.st...@gmail.com> wrote: > Perhaps try editing the model data in afterFind(). Or changing it > before its saved in beforeSave(). Both of these methods would be in > your models. > > -Mark > > On Dec 12, 2:52 pm, ark0n3 <nicolabeg...@gmail.com> wrote: > > > Hi > > I'm sorry to bother you with some newbye question, but I'm really > > unable to find it answered on the newsgroup (it's difficult to explain > > and it's difficult to google it..) > > > I'm trying to improve my PHP skills using the powerful CakePHP > > framework: at the moment I'm porting an old movie-catalog application > > to the framework, and everything is becoming more clear as soon as I'm > > re-engineering every part of the old application. Also the shell part > > didn't was so hard, instead Cake let me do the same work with less > > code and more structural design. > > > Here's the question: > > I want to add a piece of string all the times I output a Model: i.e. > > have a Movie having two fields, 'disc' and 'comedy'. The 'comedy' > > field is boolean, and I want that every time a Movie is sent to view > > the 'disc' field is changed to C-'disc'. (I want to add a prefix to > > the disc). Is that possible? I've tried editing $this->data with > > beforeFilter and beforeRender but with no luck.. > > > Hope someone will help me! > > > Thanks > > ark0n3 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---