[eluser]InsiteFX[/eluser]
Add this - ./application/config/config.php.
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%?=&.:_\-';
Add this - ./application/core/MY_Input.
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ------------------------------------------------------------------------
* Created by phpDesigner 8.
* Date : 6/27/2012
* Time : 11:49:22 PM
* Author: Raymond L King Sr. - The Learn CodeIgniter Development Team.
* ------------------------------------------------------------------------
*
* Class Name
*
* ------------------------------------------------------------------------
* @package Package CodeIgniter
* @subpackage Subpackage libraries
* @category category name
* @author Raymond L King Sr.
* @copyright Copyright (c) 2009 - 2012, Custom Software Designers, LLC.
* @link http://www.example.com
* ------------------------------------------------------------------------
* To change this template use File | Settings | File Templates.
* ------------------------------------------------------------------------
*/
class MY_Input extends CI_Input {
/**
* --------------------------------------------------------------------
* Class variables - public, private, protected and static.
* --------------------------------------------------------------------
*/
private $_ci;
// -----------------------------------------------------------------------
/**
* _sanitize_globals()
*
* Some Workaround:
*
* 1. If you want to accept GET data in your controller’s index method.. have to use
* - http://localhost/myapp/mycontroller/index/?possible=yes
*
* @access public
*/
public function _sanitize_globals()
{
$this->allow_get_array = TRUE;
parent::_sanitize_globals();
}
} // End of Class.
/* ------------------------------------------------------------------------
* End of file Name.php
* Location: ./application/libraries/Name.php
* ------------------------------------------------------------------------
*/
Add this ./ .htaccess.
Code:
php_value default_charset utf-8
Options FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]