CakePHP 3: enable public comments

2019-05-26 17:40:46+00

As we publish our contents there will be readers who would like to give feedback or advice.

Therefore we need a comment system that:

  • Allows readers to give feedback
  • The users email will be validated before the contents gets published
  • Users email will not be displayed to the public only the nickname
bin/cake bake model comment One moment while associations are detected. Baking table class for Comment... Creating file /usr/kapp/src/Model/Table/CommentTable.php Wrote `/usr/kapp/src/Model/Table/CommentTable.php` Baking entity class for Comment... Creating file /usr/kapp/src/Model/Entity/Comment.php Wrote `/usr/kapp/src/Model/Entity/Comment.php` Baking test fixture for Comment... Creating file /usr/kapp/tests/Fixture/CommentFixture.php Wrote `/usr/kapp/tests/Fixture/CommentFixture.php` Bake is detecting possible fixtures... Baking test case for App\Model\Table\CommentTable ... Creating file /usr/kapp/tests/TestCase/Model/Table/CommentTableTest.php Wrote `/usr/kapp/tests/TestCase/Model/Table/CommentTableTest.php` bin/cake bake controller comment Baking controller class for Comment... Creating file /usr/kapp/src/Controller/CommentController.php Wrote `/usr/kapp/src/Controller/CommentController.php` Bake is detecting possible fixtures... Baking test case for App\Controller\CommentController ... Creating file /usr/kapp/tests/TestCase/Controller/CommentControllerTest.php Wrote `/usr/kapp/tests/TestCase/Controller/CommentControllerTest.php` bin/cake bake cell comment Creating file /usr/kapp/src/Template/Cell/Comment/display.ctp Wrote `/usr/kapp/src/Template/Cell/Comment/display.ctp` Creating file /usr/kapp/src/View/Cell/CommentCell.php Wrote `/usr/kapp/src/View/Cell/CommentCell.php` Baking test case for App\View\Cell\CommentCell ... Creating file /usr/kapp/tests/TestCase/View/Cell/CommentCellTest.php Wrote `/usr/kapp/tests/TestCase/View/Cell/CommentCellTest.php`

Tag: cakephp3