Re: Problem with Model Association

2009-10-07 Thread Raman
Yes, it was newspost.php. On Oct 6, 9:10 pm, brian wrote: > That shouldn't be an issue. What was the file name? If it wasn't > news_post.php that would do it. > > > > On Tue, Oct 6, 2009 at 3:01 PM, Raman wrote: > > > Thanks brian, tried that, but it didn't work. I found the solution > > though

Re: Problem with Model Association

2009-10-06 Thread brian
That shouldn't be an issue. What was the file name? If it wasn't news_post.php that would do it. On Tue, Oct 6, 2009 at 3:01 PM, Raman wrote: > > Thanks brian, tried that, but it didn't work. I found the solution > though. I'm using CakePHP version 1.3, so this might be a bug I really > don't kn

Re: Problem with Model Association

2009-10-06 Thread Raman
Thanks brian, tried that, but it didn't work. I found the solution though. I'm using CakePHP version 1.3, so this might be a bug I really don't know. The problem was the capitilization of the 'P' in News'P'ost. I changed the model's names, filenames, etc. to just News and voila, it works! On Oct

Re: Problem with Model Association

2009-10-06 Thread brian
In Comment.php, add var $belongsTo = array('NewsPost'); On Tue, Oct 6, 2009 at 1:02 PM, Raman wrote: > > Hello, > > Im very new to CakePHP and have just started to learn Model > Association. If I make any errors in the google group, please excuse > me this is my first time on any google group. >

Problem with Model Association

2009-10-06 Thread Raman
Hello, Im very new to CakePHP and have just started to learn Model Association. If I make any errors in the google group, please excuse me this is my first time on any google group. I have 2 databases: -news_posts -id -title -body -comments -id -body -newspost_id Here