Hello friends,
I've implemented a forum with the Tree Behavior which fields are the
following:
id
parent_id
lft
rght
title
user_id
date
message
All my CRUD functions are working well.
I've written this method to paginate this table:
function list(){
$this->set('queryForumCars',$this->paginate('ForumCar'));
$this->render('list','default');
}
Ans it also works. However, I would also like the view list.ctp to
have the number of comments associated to the messages. I'm thinking
in using the childCount method of the model, but I don't know how to
combine to obtain the result I wish. Could anyone give me a clue to
solve this?
Thanks a lot in advance for your help!
Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---