Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Received: by 10.150.49.2 with SMTP id w2mr11098ybw.18.1213200032290; Wed, 11 Jun 2008 09:00:32 -0700 (PDT) Date: Wed, 11 Jun 2008 09:00:32 -0700 (PDT) X-IP: 125.161.134.111 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5,gzip(gfe),gzip(gfe) Message-ID: <3e4eef37-a304-427e-b9be-ed809a105ad6@j33g2000pri.googlegroups.com> Subject: How to create instance methods? From: sancho21 To: CakePHP I'm Ruby on Rails user trying to learn CakePHP. I see many great features in CakePHP like how it handles relationship problems. But, I could not find how it handles model instance's methods. Like $medicine = new Medicine(); $medicine->getPrice(date()); or $doctor = new Doctor(); $doctor->sign($prescription); It seems that CakePHP is working only on associated arrays. So..... how to solve the problem. I think this problem is common things in object oriented language. Or ... may be somebody want to suggest me other framework of PHP? Thank you so much