Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6156409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:36:19+00:00 2026-05-23T20:36:19+00:00

I have the CakePHP Comments Plugin set-up correctly, I believe. I’ve followed the poorly-written

  • 0

I have the CakePHP Comments Plugin set-up correctly, I believe. I’ve followed the poorly-written instructions [here] to the point where it’s requiring me to login to add a comment. When I click “add a comment”, it gives me the title and body form fields.

It’s even submitting and saving the data just fine. Then, the data comes across when I debug($article); – I see the comment(s) for that article in the data.

But – the only thing that appears when I have this in my view:

<? $commentWidget->options(array('allowAnonymousComment' => false));?>
<? echo $commentWidget->display();?>

Is the “Add a comment” button.

How do I display the comments? The plugin has views for index, edit, view…etc all seem to be laid out ok and for me to use, but… I tried a straight include, and it’s missing lots of variables..etc, so – assume there’s some kind of method or something to display the comments, like… echo $commentWidget->comments; or something?

UPDATE:

When I debug($result); from comment_widget.php, I still just get an “Add comment” link (so there are two on the page now – one from the actual ->display() and one from my new debug.

Below is what I’m getting when I debug($article); from my articles_controller.php.
I built the table myself, based on a few things I found online – and it appears to be populating (mostly) – maybe I did something wrong w/ the db setup?

[Comment] => Array
    (
        [0] => Array
            (
                [id] => 7
                [title] => dave test 2
                [created] => 2011-07-10 20:28:31
                [modified] => 2011-07-10 20:28:31
                [user_id] => 67
                [foreign_key] => 683
                [approved] => 1
                [slug] => dave_test_2
                [body] => test
                [rght] => 2
                [model] => Article
                [is_spam] => 
                [lft] => 1
                [parent_id] => 0
                [author_name] => 
                [author_url] => 
                [author_email] => 
                [language] => en-us
                [comment_type] => 
            )

        [1] => Array
            (
                [id] => 8
                [title] => blah blah blah 6523dkaljlkfsjdsfaljsd
                [created] => 2011-07-10 21:33:43
                [modified] => 2011-07-10 21:33:43
                [user_id] => 67
                [foreign_key] => 683
                ...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:36:21+00:00Added an answer on May 23, 2026 at 8:36 pm

    Build the table structure per the schema.php (plugins/comments/config/schema/schema.php) making sure to use their default values. In my case, I left out the default values of ‘comment’ for comment_type, and ‘clean’ for the default of is_spam.

    Fixing both of these makes it so the comments now appear correctly! They’re ugly with no CSS, so – any suggestions on that is more than welcome, but… they work!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I'm trying to use the CakePHP comments plugin found here http://cakedc.com/downloads/view/cakephp_comments_plugin but the
I have problem with cakephp's Session->write method. If I set a value like $_SESSION['..']
Hey all, have a slight problem here. In CakePHP I have a controller that
I use plugin Comments from CakeDC and have big problem in production mode (debug=0).
I recently downloaded cakephp-1.3.4. I set it up on my web server. I followed
I have CakePHP app in which I'd like to attach gallery to multiple resources.
I have a CakePHP 1.2 application. I'm running into the case where I need
I have the CakePHP stack in /var/www/site from one view under controller A I
I have a cakephp installation in the root of my domain. Now it turns
I have used cakePHP 1.2 and know how to use behaviors in it. using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.