File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,8 +91,6 @@ public function initialize() {
9191}
9292```
9393
94- ### 4. Add the following in your controller.
95-
9694``` php
9795public function contact() {
9896 if ($this->request->is('post')) {
@@ -113,7 +111,7 @@ public function contact() {
113111}
114112```
115113
116- ### 5 . Finally add ` <?= $this->Recaptcha->display() ?> ` in your view template inside the form.
114+ ### 4 . Finally add ` <?= $this->Recaptcha->display() ?> ` in your view template inside the form.
117115
118116** No need** to add the helper: it will be added with the component.
119117
@@ -161,8 +159,12 @@ See another example of contact with no form in
161159
162160## Tests ##
163161
164- To test the plugin, clone it and run ` composer install ` . Then run
165- ` ./vendor/bin/phpunit ` and ` ./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests --ignore=vendor `
162+ To test the plugin, clone it and run ` composer install ` . Then run:
163+
164+ ``` bash
165+ ./vendor/bin/phpunit
166+ ./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests --ignore=vendor
167+ ```
166168
167169## Support & Contribution ##
168170
Original file line number Diff line number Diff line change 99 " recaptcha" ,
1010 " captcha"
1111 ],
12- "homepage" : " https://github.com/cake17/ cakephp-recaptcha" ,
12+ "homepage" : " https://github.com/cakephp-fr/ recaptcha" ,
1313 "license" : " MIT" ,
1414 "authors" : [
1515 {
2424 },
2525 "require" : {
2626 "php" : " >=5.4" ,
27- "cakephp/cakephp" : " ~3.0 "
27+ "cakephp/cakephp" : " ~3.1 "
2828 },
2929 "require-dev" : {
3030 "phpunit/phpunit" : " *" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22/**
33 * Routes for Recaptcha Plugin
44 *
5+ * This file is only used to see live examples
6+ * Do not use it in production, meaning remove 'routes' => true when plugin is
7+ * loaded
8+ *
59 * @author cake17
610 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
711 * @link http://blog.cake-websites.com/
You can’t perform that action at this time.
0 commit comments