- Asyraf_wa
- CakePHP
- Hits: 288
CakePHP 4 Common Helpers
Here some common helpers used in CakePHP project.
Add a commentHere some common helpers used in CakePHP project.
Add a commentSlug 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
Hahaha, it is unfortunately true.
This tutorial will show how to create a function to estimate time for reading some text on your web or application. Many websites have shown the estimated reading time for the users at the same time may be helpful for the users to know how long they need to finish the reading.
Add a commentThis tutorial will show how to use 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.
Add a commentNeed to count total records? Count total record based on a condition? 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.
Add a comment© Copyright 2021 Code The Pixel by Asyraf_wa