If you want your plugin to have and use routes, you need to configure it first – otherwise, None of the currently connected routes match the provided parameters. Add a matching route to config/routes.php Start by enabling routes and bootstrapping when you load the plugin in your src/Application.php: $this->addPlugin(‘MyPlugin’, [‘bootstrap’ => true, ‘routes’ => true]);… Continue reading CakePHP plugin: None of the currently connected routes match the provided parameters
Tag: cakephp
Loading custom config for a CakePHP plugin
Making a CakePHP plugin have it’s own config file
Working with HTTP request type (method) in CakePHP
Get the request type (method): $this->request->getMethod() (For the older versions before 3.4, use $this->request->method()) Check the request type (method): $this->request->is('post'); Documentation: https://book.cakephp.org/4/en/controllers/request-response.html#reading-the-http-method https://book.cakephp.org/4/en/controllers/request-response.html#Cake\Http\ServerRequest::is
The very basics of getting started with CakePHP events
A quick example on how to get started with CakePHP event system.
Creating a RESTful API resource in CakePHP 4
Here’s how to quickly convert a controller into an API resource
CakePHP 4 “Missing or incorrect CSRF cookie type”
Reconfiguring `CsrfProtectionMiddleware` to allow POST requests to specific scopes. The article offers two ways to navigate around the “Missing or incorrect CSRF cookie type” error.
CakePHP CRUD plugin pagination limit
Adding pagination to `friendsofcake/crud` and `friendsofcake/crud-view`