Re: HABTM with associations

2008-02-25 Thread jim starboard
HELLO. this was in a presentation half a year ago. thanks for nothing. On Feb 24, 7:19 pm, jim starboard [EMAIL PROTECTED] wrote: Have the with association's for HABTM been documented yet? Can't seem to find any info. --~--~-~--~~~---~--~~ You received

Re: SQL error when adding item using the scaffolding

2008-02-24 Thread jim starboard
, 2008 at 5:19 PM, jim starboard [EMAIL PROTECTED] wrote: This IS a cake issue. The scaffolding code should not pass an empty string to the ID field. It should be fixed so that the id is not used in the generated SQL statement. On Feb 16, 8:42 am, skantner [EMAIL PROTECTED] wrote: I

This needs to be checked everywhere

2008-02-24 Thread jim starboard
Not really sure why this is allowed, but there are places where inserts are handled with an empty string for an auto-increment primarykey id. This fails with any strict setup of a db, if there is auto increment. There is 3 week old trac listing for this but it really boggles the mind why you

Re: SQL error when adding item using the scaffolding

2008-02-24 Thread jim starboard
I have say, I love how I'm put in my place in this group. I think I finally found a home. On Feb 24, 6:39 pm, nate [EMAIL PROTECTED] wrote: On Feb 24, 6:19 pm, jim starboard [EMAIL PROTECTED] wrote: Already there. 3 weeks old. Hard to believe it's not fixed. Maybe it's because we've got

HABTM with associations

2008-02-24 Thread jim starboard
Have the with association's for HABTM been documented yet? Can't seem to find any info. --~--~-~--~~~---~--~~ 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

Re: SQL error when adding item using the scaffolding

2008-02-24 Thread jim starboard
That wasn't sarcasm. You were right. On Feb 24, 8:17 pm, nate [EMAIL PROTECTED] wrote: All I'm really saying is, try and show a little respect. I don't think that's too much to ask. On Feb 24, 6:44 pm, jim starboard [EMAIL PROTECTED] wrote: I have say, I love how I'm put in my place

Re: Model that is not tied to a table

2008-02-23 Thread jim starboard
Model Call backs are event related - this is not the way. I think what I need are associations. On Feb 22, 9:09 pm, John David Anderson [EMAIL PROTECTED] wrote: On Feb 22, 2008, at 6:59 PM, jim starboard wrote: As far as I know, there's no need for multiple-table models Why

Automagically

2008-02-23 Thread jim starboard
Please stop using the term automagically in the docs. It's an embarrassment. --~--~-~--~~~---~--~~ 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

General HABTM question

2008-02-23 Thread jim starboard
Despite the naming convention, isn't the HABTM association really just modeling the shared foreign key table relationship? For example, you have a 'users' table and an 'items' table, and they are tied together with the items_users table. Not considering cake, you would use this because several

Re: General HABTM question

2008-02-23 Thread jim starboard
thanks guv'ner On Feb 23, 10:48 pm, rtconner [EMAIL PROTECTED] wrote: You got it right. --~--~-~--~~~---~--~~ 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

getting started - couple of questions

2008-02-22 Thread jim starboard
I'm setting up my first cakePHP site. Let me explain what I have so far. Am I off to the right start? Then there are some other questions below. I'm doing my home page first. I have the following views\layouts\default.thtml - this is the general site html that's repeated everywhere. I have the

why change the name?

2008-02-22 Thread jim starboard
In a view you have $content_for_layout but in the controller you set it with $layout. What is the motivation behind this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Model that is not tied to a table

2008-02-22 Thread jim starboard
I'm trying to understand how to set up the homepage of my site. I would like to have my home_controller access various tables in the database, eg users, games, etc. The problem is, I'm required to have a home model, but there is no homes table. So I get an error. What's the best way to have a

Re: Model that is not tied to a table

2008-02-22 Thread jim starboard
model that in turn references several tables (or child models). On Feb 22, 8:38 pm, John David Anderson [EMAIL PROTECTED] wrote: On Feb 22, 2008, at 6:26 PM, jim starboard wrote: I'm trying to understand how to set up the homepage of my site. I would like to have my home_controller access

Re: Site home page question

2008-02-21 Thread jim starboard
://manual.cakephp.orgwill show it in a very easy way. just try it. Spark On Wed, Feb 20, 2008 at 5:43 PM, jim starboard [EMAIL PROTECTED] wrote: I'm trying to get a high-level understanding of how you would handle a site's homepage. Lets say it's a gaming site. Some of the items on the homepage would

Re: Site home page question

2008-02-21 Thread jim starboard
some docs out there about that and problems with efficiency. However, CakePHP has some beautiful caching which makes this livable On Thu, Feb 21, 2008 at 10:46 AM, jim starboard [EMAIL PROTECTED] wrote: Sorry about getting off on the wrong foot. I think my main question is: Should I

Re: SQL error when adding item using the scaffolding

2008-02-18 Thread jim starboard
This IS a cake issue. The scaffolding code should not pass an empty string to the ID field. It should be fixed so that the id is not used in the generated SQL statement. On Feb 16, 8:42 am, skantner [EMAIL PROTECTED] wrote: I want to say thanks also, Ben. This was really annoying me. I

Spelling error in docs

2008-02-17 Thread jim starboard
http://manual.cakephp.org/chapter/models durint instead of during --~--~-~--~~~---~--~~ 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

quote placement error in docs

2008-02-17 Thread jim starboard
http://manual.cakephp.org/chapter/models array(Post.title = This is a post) the third quote is in the wrong place no? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send