Base Model In CodeIgniter

I always use this Base Model for My CodeIgniter App Development, It makes my app portable and flexible.We can define all Global methods and settings in Base Model (Inheritable) so that all Child Models share some common […]

How to prevent multiple form submissions in PHP?

In this post, we gonna see how we can prevent multiple submissions of a form in PHP applications. Sometimes a user may hit submit button twice or the user may reload the page(with post data), both activities make form […]

Convert Array To Object With PHP

Converting array to object with PHP is merely simple for normal array , bit complicated for multidimensional array. Here i will show you different methods for converting array to object. Using Type Casting This method […]

How to get domain name from URL

Below is the simple function for getting host name form the URL, it will extract the URL as array and it will return domain name. It will not work with invalid URLs, if URL is invalid it will return false otherwise it […]

Dynamic Year Dropdown List

Here is a snippet of PHP code to create a dynamic Dropdown form field which contain years in the Dropdown List. we can achieve this in so many ways but i am gonna show you most simplest one here.By using PHP’s built […]

How to Create and Parse JSON Data in PHP?

This is a quickie simple post on how to create and parse the JSON(Java Script object notion) data format of using array of PHP. It’s a very simple ,blow listed code allows you to perform this task. we can parse it […]

Twitter Bootstrap Modal Box as Dialog Boxes

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS […] Protection Status