Wednesday, February 2, 2011

HABTM question, really appreciate any help!

I'm a newbie to Cakephp and I am trying to learn the HABTM for the
"post and tag" example.

I have set up the "$hasAndBelongToMany" to both "post" and "tag"
models, also I have created the "posts_tags" join table. I added the
"$scaffold" in the posts and tags controller, when I try to add a new
post, the tags never show up, vice versa. I am really frustrated.

I am attaching the related files in a rar file:
http://www.excelsrmc.com/myFile/relatedFiles.rar

The files are:

post.php
tag.php
posts_controller.php
tags_controller.php

and the .sql database file

I know this is a stupid question, but I really hope someone could
help, really appreciate it.

Thank you very much

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: