Thursday, August 26, 2010

Re: Does every model need a "name" field? Why?

perhaps he meant a name variable, as shown in the following example:

  1. <?php
  2. class Ingredient extends AppModel {
  3. var $name = 'Ingredient';
  4. }
  5. ?>



On Thu, Aug 26, 2010 at 1:23 AM, psybear83 <psybear83@gmail.com> wrote:
Hi all

I'm just digging into CakePHP and continue an application of my
previous co-worker. He told me that every model needs a "name" field
in the database. Why's that? I did a search on Google but could't find
an answer...

Thanks
Josh

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: