• 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 POST

    It works well … but in future I want to make the relationship little more complex say

    POST hasMany COMMENT
    COMMENT belongsTo POST

    and 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 POST

    Please help me , I have been banging my head for the past 24 hours.

Viewing 1 replies (of 1 total)
  • Anonymous User

    (@anonymized-3085)

    If you are not using WordPress, and are using cakephp to create a WordPress like piece of software, then the WordPress support forums are not the place to ask.

Viewing 1 replies (of 1 total)

The topic ‘cakePHP issue’ is closed to new replies.