CodeIgniter removing index.php from url

There are three steps to remove index.php from URL

Step:-1 Open the folder “application/config” and open the file “config.php“. find and replace the below code in config.php file.

//find the below code 
$config['index_page'] = "index.php"
//replace with the below code 
$config['index_page'] = ""

Step:-2 Go to your CodeIgniter folder and create .htaccess

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]

Step:-3 In some case the default setting for uri_protocol does not work properly. To solve this problem just open the file “application/config/config.php“, then find and replace the below code

//find the below code 
$config['uri_protocol'] = "AUTO" 
//replace with the below code 
$config['uri_protocol'] = "REQUEST_URI"

How to Integrate PayPal with CodeIgniter PHP Class Library

Setup

  • Download the PHP CodeIgniter class library for PayPal and upload to a directory on your web server.
  • Open /application/config/payal-sample.php and adjust the values with your own Sandbox and Production API credentials. Then save-as paypal.php.
  • There are detailed comments inside the config file to help you fill it out correctly.

We got this blog from www.angelleye.com for blog more information Click Here

RESTful Services with CodeIgniter

I wrote a blog post called Building a RESTful Service using CodeIgniter. It was intended to be a learning tutorial on RESTful concepts and how to implement them using the CodeIgniter framework. It’s been almost two years since I published that post, and it still sees a lot of traffic. REST has grown in significance since then, and people are clearly still interested in using CodeIgniter to implement RESTful APIs. I was never entirely satisfied with a few aspects of my original implementation, so I am taking this opportunity to provide a better one. If you want an updated tutorial on RESTful concepts and also a recommendation for a simple, quick, and good implementation of a RESTful service using CodeIgniter, then you have come to the right place.

We got this blog from outergalactic.org for blog more information Click Here

Working with RESTful Services in CodeIgniter

CodeIgniter is becoming well known for its power as a PHP based web application framework, but it’s not often that we see examples of it being used for anything else. Today we’ll learn how we can use CodeIgniter to create a RESTful API for your existing web applications, and demonstrate how to interact with your own API or other RESTful web-services, such as Facebook and Twitter.

Tutorial Details

  • Program: CodeIgniter, CodeIgniter REST server and CodeIgniter REST client
  • Difficulty: Medium
  • Estimated Completion Time: 30 minutes

We got this blog from code.tutsplus.com for blog more information Click Here

CodeIgniter REST Server API

One of the tasks associated with a recent application involved many dynamic subpanels. These subpanels often required many AJAX interactions using jQuery (getJSON); insert, update, list, etc. Instead of trying to writing a controller method for each AJAX interaction, an internal REST Server (Controller) was used to standardize the interactions. This surprisingly made development much easier, as the REST Server forced standard API calls to a single controller. The REST Server was based on Phil Sturgeon’s REST Server Class for CodeIgniter. The result was a fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.

REST Server:
https://github.com/philsturgeon/codeigniter-restserver

We got this blog from www.jjwdesign.com for blog more information Click Here

CodeIgniter Resize and Crop Image To Fit Container Div Example

When a user uploads an image to be displayed on a webpage, we need to make sure that the image has the following:

  • Fits correctly into a fixed height and width container without overflowing or any blank space.
  • Displays in full image resolution (without shrinking or expanding image using CSS width and height).
  • Image displayed is not skewed or distorted and keeping image ratio.

We got this blog from kennykee.com for blog more information Click Here

Image Thumbnail Creation & Caching With CodeIgniter

How you handle the saving and display of images is very important while planning your web app. Questions you would ask yourself include: How should images be stored? What will the standard naming conventions be? How will thumbnails be created? In this article, I will be focusing on how I decided the way thumbnails would be generated in my applications.

We got this blog from www.jrtashjian.com for blog more information Click Here

How to Update your Twitter Status with CodeIgniter

Hi, in this tutorial we will update our twitter status via the ‘Twitter API’ using CodeIgniter. I recommend following step by step, rather than glossing over the tutorial. Let’s dig in!

Tutorial Details

  • Program: CodeIgniter PHP Framework
  • Version: 1.7.1
  • Difficulty: Advanced
  • Estimated Completion Time: 30 minutes

We got this blog from code.tutsplus.com for blog more information Click Here

Working with RESTful Services in CodeIgniter

CodeIgniter is becoming well known for its power as a PHP based web application framework, but it’s not often that we see examples of it being used for anything else. Today we’ll learn how we can use CodeIgniter to create a RESTful API for your existing web applications, and demonstrate how to interact with your own API or other RESTful web-services, such as Facebook and Twitter.

Tutorial Details

  • Program: CodeIgniter, CodeIgniter REST server and CodeIgniter REST client
  • Difficulty: Medium
  • Estimated Completion Time: 30 minutes

We got this blog from code.tutsplus.com for blog more information Click Here