Profile cover photo
Profile photo
Yogesh Singh
21 followers
21 followers
About
Posts

Post has attachment
Call Model method from another Model in CodeIgniter

In CodeIgniter, Model is used for the Database manipulation – fetch, insert, update, and delete records.

If within the project there are multiple Models are available then it may require to perform the action in a Model which is already created in another Model.

In this case, you can either create a separate function to perform the same action or use the already available method in the Model.

It is possible to reuse the method in the Model from another Model.

Models are loaded in the Model as same as loaded in the Controller using $this->load->model().

In this tutorial, I create 3 Models and call 1st and 2nd Model methods from the 3rd Model.
Add a comment...

Post has attachment
Loading data remotely in Select2 with AJAX

Select2 is a jQuery plugin which extends the functionality of simple HTML drop-down element by allowing to search the list, adding the image with options, navigate to option with arrow keys, etc.

It comes with the AJAX supports where you can call it in the same way as $.ajax in the jQuery.

The plugin provides the currently inputted value in the search box which can be used as data in the AJAX request.
Add a comment...

Post has attachment
How to add Custom Filter in DataTable – AJAX and PHP

When DataTable is initialized on the HTML table then it generates pagination which has sorting, searching on all columns, change number of records display features.

The default search control mainly uses to finds value on all columns and display filter list. But it can be customized.

Sometimes it requires to add some custom search filters based on the records available like – date filtering, single field search, etc.

In this tutorial, I show how you can add the custom filter to the DataTable and use it with AJAX.
Add a comment...

Post has attachment
How to create Custom Page Template in WordPress
Add a comment...

Post has attachment
DataTables AJAX Pagination with Search and Sort – PHP

DataTables is a jQuery plugin which makes easier to add pagination on the webpage.

Just need to add records list then it will auto-adjust data and create pagination with search and sort feature.

There are options available to implement AJAX pagination.

In this tutorial, I show how you can implement AJAX pagination in DataTables with PHP.
Add a comment...

Post has attachment
Update multiple selected records with PHP

Sometimes its require to quickly modify multiple records and save it to the MySQL database table.

It makes easier to update records instead of updating one by one.

With checkboxes, enable multiple records selection from the list.

In this tutorial, I show how you can update multiple selected records to MySQL with PHP.
Add a comment...

Post has attachment
Sort Pagination records on Header Click in CodeIgniter

Pagination is used to display the large list of records in multiple pages form. This makes easier to access records.

You can make traversing more easier by add sorting on the table.

The table list gets arranged according to the clicked header.

In this tutorial, I show how you can implement pagination sorting on header click in CodeIgniter.
Add a comment...

Post has attachment
How to Create Custom Page Template in WordPress

In WordPress, you can easily customize the page by editing the page.php file of the active theme. But the change will affect on all pages where no need of customization.

You can avoid this by creating the custom page template.

Using this you can design different-different layout for the pages and add extra content to it without affecting regular pages on the site.

In this tutorial, I show how you can create and add the custom template to the page.
Add a comment...

Post has attachment
Insert Update and Delete record with AJAX in Laravel

AJAX is use to communicate with the server and perform action like – database manipulation, file upload, etc. without the need to refresh whole page.

In this tutorial, I show how you can use jQuery AJAX to insert, update, and delete records in Laravel.

Add a comment...

Post has attachment
How to Display existing files on Server in Dropzone – PHP

Dropzone library makes easier to implement file upload using drag and drop on the page.

After file uploading, it shows the preview of the file in the upload area.

All the thumbnails are removed when the webpage is get refreshed.

To recreate the thumbnails after page refresh needs to send AJAX request to get all files list for adding thumbnails while initializing Dropzone.

In this tutorial, I show how you can display existing files stored on the server in Dropzone file area with jQuery AJAX.
Add a comment...
Wait while more posts are being loaded