This example shows you how to get the referring page, so you can provide your user with a link to their last page.
CakePHP
Using INSERT SELECT to copy & populate one table from another.
MySql / MariaDB
Copy one table from another, across databases with MariaDB / MySql.
MySql / MariaDB
This example shows you how to use CSS to replace the spinners / incrementers on HTML5 number-type fields.
CSS
This example shows how to the get name of the controller or method in CakePHP3
CakePHP3, CakePHP
Hashing a password in CakePHP3
CakePHP3
Access Methods From Another Controller in CakePHP3
CakePHP
This example shows you how to replace strings in table rows for a specific database field.
MySql / MariaDB
This demonstrates how to use multiple joins in your CakePHP database calls.
CakePHP3
Quickly create/route an email address / "alias" without eating up the user's email aliases (30 allowed). Since I have multiple domains, aliases can add up quick and hit that 30-alias limit. The solution is to create a new default route.
Use this example to sort by a specific value in a field within your table, then sort by other fields.
MySql / MariaDB
Write and read cookies in your CakePHP 4 app.
CakePHP, CakePHP4
Joining a single table on multiple fields in CakePHP 4, for example, join the users table on created_by and modified_by fields.
CakePHP 4, CakePHP
Search and filter records in a table using jQuery.
Javascript, jQuery
Get Items to Populate a Dropdown in CakePHP 4
CakePHP4
Use an alternative prefix in CakePHP4. For example, you can have separate folders for different functionality by user role, and you can use this method to separate functionality (actions / methods) for specific purposes, in separate controllers.
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
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
This example shows you how to get the count of records within the last 7 days. In our table, we have the full date and time; This example shows all records for a complete day, grouped by day.
MySql