Thanks for that. I'll have to look into it further, but I'm hoping it works the same way as virtual attributes in Rails.
On Aug 28, 9:15 am, RichardAtHome <[EMAIL PROTECTED]> wrote: > A CakePHP Model is just a PHP class. You can still use all of PHP's > class abilities. > > for example: > > class MyModel extends AppModel { > > var $myCustomPropery = "w00t!"; > > } > > in controller: > > echo $this->MyModel->myCustomProperty; > > On Aug 28, 2:19 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > > I don't get what you mean with "custom properties". Maybe it's just me > > but, can you elaborate a bit more please? > > > On Thu, Aug 28, 2008 at 2:03 AM, trustfundbaby <[EMAIL PROTECTED]> wrote: > > > > How do you specify custom properties in a CakePHP model? > > > I'm trying to do this, but there is no sample code any where that > > > shows how its done, can someone point me in the right direction? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---