BelongsTo in Cake php?

Tnx for the answer. But the result was same. My model files names where wrong.

Now it's ok – aleks May 7 at 4:59.

One of the most powerful features of CakePHP is the ability to handle model associations, at its very simplest an association occurs when some data in the database is related to some other data. In normal PHP applications you would normally have to write a custom SQL statement that will grab the data using a JOIN statement. Obviously this kind of custom query can be accomplished in CakePHP but it will automatically grab all the related data as long as you have specified the relationship in the Model file.

In a simple example i'm going to stick with the mandatory 'Blog Application' and add a comment system, so that people can assign comments to posts. Before starting I recommend reading the Associations section in the manual and my previous post about using the 'bake' script.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions