Render a different view in CakePHP. Sometimes you want to use a different view, other than the default CakePHP uses.
CakePHP
This example shows you how to obtain user information from the session.
CakePHP, CakePHP4
Read & Write Cookies in CakePHP 3
CakePHP
This example shows you how to change the layout in CakePHP4
CakePHP, CakePHP4, CakePHP3
This example shows you how to throw an error in CakePHP4
CakePHP4
Hashing a password in CakePHP3
CakePHP3
This demonstrates how to use multiple joins in your CakePHP database calls.
CakePHP3
This is an example on how to get the webroot from within a Cake layout or template.
cakephp4, cakephp, CakePHP3
These examples describe how to install the AWS SDK for PHP with composer, and utilize S3.
cakephp4, AWS, CakePHP
These examples show the differences in inserting records when in CakePHP3 & CakePHP4.
CakePHP, CakePHP3, CakePHP4
Authentication in CakePHP4 (Strawberry)
cakephp4, cakephp
Get insert id from last added record in CakePHP.
CakePHP, CakePHP3
This example shows how to send an email from within a method in your controller.
CakePHP
Components are re-usable bits of code you can call anywhere throughout your application.
CakePHP, CakePHP4
Override the CakePHP maximum of 100 records in pagination.
CakePHP, CakePHP4
Here's a brief few snippets for using sessions in CakePHP4.
CakePHP, CakePHP4
How to use CakePHP Bake Features to generate your models, views (templates) and controllers, automatically!
Cake Bake, Cake Bakery, CakePHP4 Bake
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
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
How to Fix Error: CSRF token from either the request body or request headers did not match or is missing.