When using the CsrfProtectionMiddleware, this will demonstrate how to remove CSRF protection. Useful when handling some AJAX calls that need to post keys, such as captcha or payment APIs.
cakephp, cake4
This describes how to assign variables so you can use them later in views or layouts.
CakePHP4, CakePHP
This describes how to fix the issues in CakePHP4 related to this error: Laminas\Diactoros\UploadedFile.Laminas Diactoros
Support, CakePHP4
This example shows you how to get the reverse route for a controller/action in CakePHP4.
CakePHP4
This snip shows you how to get server and environmental information in CakePHP4.
CakePHP4
This example shows how to get Querystring parameters from a URL.
CakePHP
This describes how to get user information for the logged-in account in CakePHP4
Cakephp4
This example shows how to send an email from within a method in your controller.
CakePHP
This example shows you how to obtain user information from the session.
CakePHP, CakePHP4
This example shows you how to throw an error in CakePHP4
CakePHP4
Authentication in CakePHP4 (Strawberry)
cakephp4, cakephp
Components are re-usable bits of code you can call anywhere throughout your application.
CakePHP, CakePHP4
Here's a brief few snippets for using sessions in CakePHP4.
CakePHP, CakePHP4
This example shows how to the get name of the controller or method in CakePHP3
CakePHP3, CakePHP
This example shows you how to add HTML to your flash messages. Helpful when you want to add a link in CakePHP flash messages.
Cake4, CAKEPHP 4
How to Fix Error: CSRF token from either the request body or request headers did not match or is missing.
This example demonstrates how to return the first row or record from those returned in CakePHP.
CakePHP, CakePHP4
This example shows you how to skip CSRF checks in CakePHP (when you have it globally enabled), for prefixes with 'Api'
CakePHP, CakePHP4
CakePHP4 Mailer Usage - Gmail - Email Transport Example with CakePHP 4.
CakePHP, CakePHP4
This article demonstrates how to login as another user by impersonation, in CakePHP4. This allows administrators to login as another user and test issues with that user.
CakePHP