Tutorial

Joomla! | PHP | CakePHP Framework | jQuery | Open Source | Application

Concatenate, concatenation, or concat is a term that describes combining a string, text, or other data in a series without any gaps. If you've 2 tables, user and documents. The user table have few attributes such as firstname and lastname. Then in table documents, you need to display a drop-down menu to select the fullname of the user which required developer to combine the value of firstname and lastname in one input. Assume that your database as shown below:

Add a comment

Print

Need to print something? Fancy with the print dialogue box? Technically, the printing process is easy with the javascript Windows Print Method window.print(). The print() method opens the Print Dialog Box, which lets the user to select preferred printing options. This tutorial will show how to print the specific content using the print() method.

Add a comment

Dynamic input is very useful for any project that required dynamic number of inputs for example student can register many subjects and each subject has its own grades. How many subjects and grades input that we as developer should prepare? One student maybe registers one subject or more. Using the dynamic input concept can solve the problem.

Add a comment

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

Page 1 of 4