Codeigniter


PHP Codeigniter 3 - JQuery Ajax Form Validation Example

Hi Guys, Today we will learn how to add ajax form validation in codeigniter using javascript. we will create contact us form and form submit using ajax in codeigniter 3 app. we will use validation library of codeigniter and print error messages using ajax. We will implement server-side validation rules in codeigniter application on form submission using ajax. It is very simple to use ajax valid.....

Posted On June 5, 2018

Codeigniter 3 - call to undefined function site_url() Fixed

If you are fetching issue with undefined function site_url() in your codeigniter 3 application then you have to load "url" helper on auto load. I wanted to share this error, it will comes when you install fresh codeigniter 3 application and try to run, you will find this error undefined function site_url() when you use site_url() helper. So, if you used site_url() helper then you need to load "u.....

Posted On November 23, 2017

Codeigniter 3 undefined property $db in model - Fix

Hi, Guys If you have same issue, undefined property $db in codeigniter 3 application then you are a right place and i can help to fix this issue quick. If you used model and then you are directly going to use "$this->db" for access database table data. You will find this error "undefined property $db in codeigniter" If you are using codeigniter 3 project. However, we can resolve this issue in .....

Posted On November 5, 2017

Codeigniter 3 - call to undefined function base_url() Fixed

Hi, Friends In this tutorial i will show you how to solve base_url() function not working in codeigniter 3. When i was starting to work on my codeigniter 3 project few days ago. I just followed to some tutorial from google. But when i used base_url() in codeigniter 3 project as explained in tutorial. After run project i found following error. "Fatal error: Call to undefined function base_url().....

Posted On November 5, 2017

How to send json response from controller in codeigniter ?

In this article, we will learn how to send json response from controller method in codeigniter application. When we work with jquery ajax at that time we need to manage using json. If you got error then it will return json array with error. So You can simple send json response from controller function in codeigniter application by following example: Let's see example as bellow: <strong class="ste.....

Posted On May 20, 2017