There are many methods of sending notification to alert the web application administrator or moderator regarding some event in the web application that required attention from them. Technically, most of the notification is sent via email, however, Telegram has a bot that is free to generate and use. Taking the advantages of the bot, we can send a telegram notification message to alert the web application administrator.

Add a comment

CakePHP 4 Covid-19 Tracker Module

This tutorial will demonstrate how to populate data from JSON and CSV format from online sources. Technically the module is not limited to the CakePHP where it also can be applied to others website or web application with PHP support. The Covid-19 module tracker will present Malaysia data 1) new case; 2) new death; 3) active case; 4) total recovered; 5) total case; 6) total death; 7) total people vaccinated; 8) total fully vaccinated and; 9) total vaccination. It also includes the worldwide data: total worldwide recovered; total worldwide case and total worldwide death.

Add a comment

When developing a web application, a dynamic input usually will be used to complete some of the tasks such as dynamically insert data or bulk data. Using jQuery, the dynamic input can be easily generated even there are lots of web articles/tutorials has been published regarding this matter but this tutorial was specifically focused on generating dynamic input for CakePHP 4 and save it into the database. The focus of this tutorial is to create the dynamic input field and save the multiple entities.

Add a comment

Insert, save and edit the associative data is a common process in web application. 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. Technically, some of the developers combined the user profile information into the same user table. However, if the user profile comprises lots of data, it is recommended to separate the storage to make it more systematic. The following tutorial will guide you on how to insert, save and edit the associated data.

Add a comment

Slug is the part of the URL which identifies a particular page on 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. If you have a document title (CakePHP Note 2020) and you upload it into your system the uploaded document will get its own unique ID which will be used as a reference ID to access the document. A standard URL to access the uploaded document will be eg: localhost/myCake/documents/11 which 11 is an ID (auto-generated) for the uploaded document (CakePHP Note 2020). Let say that the documents table have (id, title and year), so the slug can be generated based on the title of the documents which will generate the URL as localhost/myCake/documents/cakephp-note-2020. Use the CakePHP Tools Plugin to easily generate the slug.

Add a comment

Page 1 of 7