It's all very simple since I was just beginning building:
models/category.php :
class Category extends AppModel {
var $name = 'Category';
var $actsAs = array('Tree');
var $hasAndBelongsToMany = 'Project';
}
models/project.php
class Project extends AppModel {
var $name = 'Project';
var $hasAndBelongsToMany = 'Category';
}
On 25 Mar., 21:06, mscdex <[email protected]> wrote:
> Post your Project and Category models, especially theHABTMvariable
> in each.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---