Re: 's' vs. 'ies' plural for table names

2006-08-22 Thread Zoltan
John David Anderson (_psychic_) wrote: On Aug 21, 2006, at 9:33 AM, Zoltan wrote: Yes, I tried it and it seemed to work at first, then got some errors about missing controllers. This was about a week ago, but going from memory I used something like: class City extends AppModel {

Re: Re: 's' vs. 'ies' plural for table names

2006-08-22 Thread Samuel DeVore
So I usually have a .thtml page in my views/pages that looks like http://cakephp.org/pastes/show/ebb93d95243037fcca3d73ae04c69b72 This lets me test my assumptions about how things are going to work. Sam D --~--~-~--~~~---~--~~ You received this message because

Re: 's' vs. 'ies' plural for table names

2006-08-22 Thread [EMAIL PROTECTED]
thanks mate :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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

Re: Re: 's' vs. 'ies' plural for table names

2006-08-22 Thread Samuel DeVore
I really need to start a page of the 'old fart's oven o' baking hints' On 8/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thanks mate :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: 's' vs. 'ies' plural for table names

2006-08-22 Thread [EMAIL PROTECTED]
then get cooking chef, i'm hungry ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: 's' vs. 'ies' plural for table names

2006-08-21 Thread John David Anderson (_psychic_)
On Aug 21, 2006, at 9:21 AM, Zoltan wrote: A bit of a newbies question here, but what is the correct way to handle tables like 'city', should I name it 'cities' or 'citys'? Have you tried it? Should be 'cities'. -- John --~--~-~--~~~---~--~~ You

Re: 's' vs. 'ies' plural for table names

2006-08-21 Thread Zoltan
Yes, I tried it and it seemed to work at first, then got some errors about missing controllers. This was about a week ago, but going from memory I used something like: class City extends AppModel { var $name = 'City'; } and class CitiesController extends AppController {..} Does this look

Re: 's' vs. 'ies' plural for table names

2006-08-21 Thread John David Anderson (_psychic_)
On Aug 21, 2006, at 9:33 AM, Zoltan wrote: Yes, I tried it and it seemed to work at first, then got some errors about missing controllers. This was about a week ago, but going from memory I used something like: class City extends AppModel { var $name = 'City'; } and class

Re: 's' vs. 'ies' plural for table names

2006-08-21 Thread Samuel DeVore
usually when I am starting a site that might have funky plurals I make a page that calls the Inflector class with the various calls for the words to see what cake thinks the plurals will be, if they are not what I expect, I either add them in the config/inflectors.php or change my thinking ;) On