Category : Codeigniter


Codeigniter 3 - select2 ajax autocomplete from database example with demo

Today, I am going to show you how to make select2 dynamic autocomplete from database table in your Codeigniter application. In this post you can lean how to implement ajax autocomplete in your Codeigniter 3 project. Select2 is a Jquery plugin and it is a very famous jquery plugin, using select2 plugin we can do several thing like select box with search, select option with check box, ajax auto-complete etc. sometimes we require to do autocomplete task with select box when we have large amount of data like products, items, category, tags, users etc. so we can't load all the data at the same ti.....

By Hardik Savani | September 15, 2016 | | 3904 Viewer | Category : Codeigniter
READ MORE

Solved - Access Not Configured. Google+ API (truncated...) on google console developer

When i was working on my Laravel 5.3 application with socialite google API. I fetched one issue when redirect on my application. I had successfully created my project on google console with site URL and redirect back URL too. But when it was redirect back on path i found one error like "403 Forbidden - Access Not Configured. Google+ API (truncated...)". I did try my self but i can't solve this error. It was always return error on my screen like this way: <strong>"ClientException in RequestException.php line 107: Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=fal.....

By Hardik Savani | September 13, 2016 | | 1311 Viewer | Category : Codeigniter
READ MORE

How to get current url with query string in codeigniter?

If you require to get current URL with parameters in your codeigniter project then you can get easily using "url" helper. Codeigniter provide url helper library that way we can get existing page url or base url etc. you can also get only parameters without URL using "input" as like bellow. <pre> $parameters = $this->input->get(); </pre> But, we are getting full path using "url" helper and $_SERVER variable. So, you can see how to get full path using both as bellow: <strong>Example:</strong> <pre class="prettyprint lang-php"> $this->load->helper('url'); <br/> $currentURL = current_url(); $pa.....

By Hardik Savani | August 29, 2016 | | 894 Viewer | Category : Codeigniter
READ MORE

Codeigniter - How to get current url in controller or view ?

Sometimes, we need to get current URL path in your controller file or view file. So, we can get simply using "url" helper. Codeigniter provide url helper library that way we can get existing page url or base url etc. current_url() through we can get current url in your Codeigniter application. But, you should load "url" helper before use current_url(). you can load url helper as bellow: <pre> $this->load->helper('url'); </pre> In bellow example, you can see code how can i get current url in your controller file. So, let's see. <pre class="prettyprint lang-php"> $this->load->helper('url'); <b.....

By Hardik Savani | August 2, 2016 | | 631 Viewer | Category : Codeigniter
READ MORE

How to get Ip Address in Codeigniter?

If you are work on Codeigniter application and you require to get client ip address then you can get easy. you don't need to use $_SERVER variable like native PHP, but Codeigniter provide $this->input. you can fetch easy using following example: <strong>Example:</strong> <pre> $ip = $this->input->ip_address(); print_r($ip); </pre>

By Hardik Savani | June 13, 2016 | | 662 Viewer | Category : Codeigniter
READ MORE

Codeigniter Angularjs http post not working

Sometimes, you face problem you can't get post data using $this->input->post(), when you fire $http.post() using AngularJS or Jquery. I also face this issue, i can't receive post value when i fire $http.post in AngularJS, But i found how to receive post data or json data in Codeigniter controller. in following example through you can solve your problem: <pre class="language-php"> public function store() { $this->load->database(); $_POST = json_decode(file_get_contents('php://input'), true); $posts = $this->input->post(); $this->db->insert('posts', $posts); } </pre>

By Hardik Savani | February 22, 2016 | | 1123 Viewer | Category : Codeigniter
READ MORE

Codeigniter 3 and AngularJS CRUD with Search and Pagination Example.

In This tutorial i want to show you how to create CRUD(Create, Read, Update, Delete) using AngularJS in Codeigniter. I added few step to create create, edit, delete, lists, search and pagination application in your Codeigniter framework. In this tutorial through you can make simple crud, search and pagination module and easily use in your codeigniter project. I am going to show preview of items module that we will do using angularJS and Codeigniter 3. <strong>Preview:</strong> <img src="/upload/code-angular.png" width="100%" style="border:2px solid cadetblue" /> <strong class="step">Step 1: C.....

By Hardik Savani | February 21, 2016 | | 27677 Viewer | Category : Codeigniter
READ MORE

    Crop, Resize, Frames etc on selected image in php using Aviary

    Crop, Resize, Frames etc on selected image in php using Aviary

    Open Post

    PHP - multiple file uploading dropzone js example

    PHP - multiple file uploading dropzone js example

    Open Post

    PHP - import excel file into mysql database tutorial

    PHP - import excel file into mysql database tutorial

    Open Post

    Laravel 5 Localization(trans helper) tutorial example

    Laravel 5 Localization(trans helper) tutorial example

    Open Post

    Bootstrap - Input multiple tags example using Tag Manager Jquery Plugin

    Bootstrap - Input multiple tags example using Tag Manager Jquery Plugin

    Open Post

    Laravel 5 - Implementing datatables tutorial using yajra package

    Laravel 5 - Implementing datatables tutorial using yajra package

    Open Post