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
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.
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
In this post, i would like to share with you how to resize image and generate thumbnail image after upload in codeigniter 3 application. Here i will give you full example of image upload with resize in codeigniter 3 application.
A Sitemap is very important for Google, Yahoo, being SEO. every site basic requirement is sitemap because we can give XML sitemap to google web console tool. So here I would like to share with you how to create dynamic
We may sometime require to call model method from another model in codeigniter app. i will show you how to call model function to another model, same model and controller file. we always use model for database logic but i
Are you wanted to get last executed sql query in codeigniter 3 project then i will help to get last query in codeigniter. We can get last executed query using last_query() function of db class in codeigniter. It is a
Today, i will tech you how to redirect previous page url in codeigniter php. we may sometime require to redirect previous page after login then you can get previous page path by using codeigniter user_agent library, request array or using
I would like to show you how to convert date format in php codeigniter 3 framework. we will change date format yyyy-mm-dd (Y-m-d) to dd-mm-yyyy (d-m-Y) with example. we almost need to display date on any module or in detail
In this tutorial, i would like to share with you step by step tutorial of creating restful web services in codeigniter 3 project. we will create rest api which uses HTTP method likes GET, PUT, POST, DELETE. you can learn
In this tutorial, i will share with you how to upload multiple image in codeigniter 3 application. we can easily do multiple file upload example in codeigniter. i will give you simple example with step by step to upload multiple
In this example, we will learn how to get current month data in codeigniter. we can get current month data using codeigniter query builder. we will use MONTH() and YEAR() mysql function for getting current month data. I will share
Sometimes, we need to check request is ajax or not in codeigniter 3 application. If you want to call same method but if request is ajax then you perform different, then you can do by using $this->input object. In Codeigniter