Installation
July 2, 2015 ยท View on GitHub
To install the plugin, place the files in a directory labelled "Comments/" in your "app/Plugin/" directory.
Git Submodule
If you're using git for version control, you may want to add the Comments plugin as a submodule on your repository. To do so, run the following command from the base of your repository:
git submodule add git@github.com:CakeDC/comments.git app/Plugin/Comments
After doing so, you will see the submodule in your changes pending, plus the file .gitmodules. Simply commit and push to your repository.
To initialize the submodule(s) run the following command:
git submodule update --init --recursive
To retrieve the latest updates to the plugin, assuming you're using the master branch, go to app/Plugin/Comments and run the following command:
git pull origin master
If you're using another branch, just change "master" for the branch you are currently using.
If any updates are added, go back to the base of your own repository, commit and push your changes. This will update your repository to point to the latest updates to the plugin.
Composer
The plugin also provides a "composer.json" file, to easily use the plugin through the Composer dependency manager.
Database Setup
The recommended way to install and maintain the database is using the CakeDC Migrations plugin.
To set up the Comments plugin tables run this command:
.\Console\cake migrations.migration run all -p Comments
Alternately you can use the build in Schema Shell of CakePHP:
.\Console\cake schema create --plugin Comments