Skip to content
CODE THE PIXEL

All tutorials

Practical, tested walkthroughs. Filter by topic or level, or sort by what readers found most useful.

CakePHP

CakePHP 4 Dynamic Input and Save Multiple Entities

When developing a web application, a dynamic input usually will be used to complete some of the tasks such as dynamically inserting data or bulk data. Using jQuery, the dynamic input can be easily generated even there are lots of web articles/tutorials that have been published regarding this matter...

3 min read

CakePHP

CakePHP 4 Insert, Save, Update (hasOne) Associative Data

Insert, save and edit the associative data is a common process in web applications. Most of the related associative data is based on the ‘hasMany’ relationship. However, in this tutorial, the focus is on the ‘hasOne’ relationship e.g user has one profile.

4 min read

CakePHP

CakePHP 4 Slugged Behavior

Slug is the part of the URL that identifies a particular page on the web or system in an easy reading form. Slug is generated based on a specific field such as article title, name, event or any relevant field.

4 min read

CakePHP

CakePHP 4 Find, Sort & Count

This tutorial will show how to count registered records in your database using CakePHP 4 method. Basically, the process is to find the records based on the condition and count.

7 min read

CakePHP

CakePHP 4 Export To CSV

This tutorial will show how to export a list of records to .csv file format in CakePHP 4. This function is useful if you want to extract the record into .csv format which can be open using Microsoft Excel. The CakePHP-csv view plugin will be used to generate the .csv file.

3 min read

CakePHP

CakePHP 4 Search Plugin

This tutorial will demonstrate the basic usage of the search plugin in CakePHP 4. Search has become an essential tool in any web information system.

4 min read

CakePHP

CakePHP 4 Concatenation

The most popular concatenation in programming is combining the first and last name field to form a full name. This tutorial shows the code of concatenation in CakePHP 4.

1 min read

CakePHP

CakePHP 4 Site Configuration Using Database

This tutorial will show the step to create a site configuration that is accessible from the form interface and stored in a database table: configurations in CakePHP 4. Basically, this site configuration leverage the global variable configuration to make it accessible throughout the system.

3 min read

CakePHP

CakePHP 4 Print PDF Using CakePDF

This tutorial will show how to use the CakePDF plugin to generate a PDF file. This tutorial will use DOMPDF as an example of the generator engine. Basically, generating PDF is useful for those who are working with a system that prints or produce correspondence or document related task.

6 min read

CakePHP

CakePHP 4 Bulk Delete

This tutorial will show how to create a bulk delete function in CakePHP 4. The bulk delete is a process of selecting a group of records in a single table and removing it from the database. A checkbox will be rendered on each of the record IDs and sent to the function that manages the delete all proc...

2 min read

CakePHP

CakePHP 4 File Upload Using Proffer Plugin

This tutorial shows how to upload images or files in CakePHP 4 using the Proffer plugin. This plugin allows images and files to be uploaded and includes a bundled image library for generating thumbnails from source images.

4 min read