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
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
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
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.
>
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