In programming, storing and retrieving data is a common process. CakePHP has many useful find type function which makes the process of data retrieval easier and practical. Usually, in index page, developer will list all records for that model. However, if the user navigates in details view (View.ctp) and need to go to the next or previous record, they need to navigate back to index and select the respective records. This tutorial will show how to use 'neighbor' find type to get a link to navigate to the next or previous records.

Add a comment

Options array could be presented using few methods such as dropdown list, radio button or checkbox. It is depending on number of array and the requirement of the application to use what types of options array. To create a multiple selection, it is recommended to use checkbox array options. Thanks to select2 jQuery script for making the multiple selection more practical and user friendly.

Add a comment

With the latest technology compacted to smart phone, the used of Quick Respond Code a.k.a QR Code has been practically useful for fast information retrieval or access. Preparing the QR code for CakePHP is easy as Google already share the Application Programming Interface (API) for QR code generator in any system. A helper for QR Code is necessary as this helper logic can be share between many views, elements, or layouts.

Add a comment

Pagination is one of the vital components to manage limit of record to be view and navigation to the next or previous page. Technically, the pagination in CakePHP is based on the page number with next and previous navigation. However, in some cases, we need to have a go to first page or go to last page button for faster navigation. This tutorial contains few sections.

Add a comment

Page 4 of 6