cakePHP issue
-
Hi guys
I am not sure how relevant is this query on wordpress forum.The problem is , I am not getting a proper forum for cakePHP.I am trying to create a blogging application very much similar to wordpress as my starter for learning cakePHP.
I created a Blogging app where people can write and store content.Then using the AUTH component for Login and Register.I also created Comments using Model Association with following relationship
POST hasMany COMMENT
COMMENT belongsTo POSTIt works well … but in future I want to make the relationship little more complex say
POST hasMany COMMENT
COMMENT belongsTo POSTand then …
COMMENT hasOne USER
but before that I want to make this relationship work according to which Only the Person who has logged in can Edit the post if he clicks the EDIT button , and likewise , The database should store the USER_ID with the id of USER when the Logged In person Writes a POST:
The relationship goes like this I guess (correct me if I have gone wrong with relationships) :
POST belongsTo USER
USER hasMany POSTPlease help me , I have been banging my head for the past 24 hours.
The topic ‘cakePHP issue’ is closed to new replies.