Ads Inside Post

Search in This Blog

Remove Controller and it's method form codeigniter

How to remove Controller in  codeigniter and it's method just show it's parameter in url for ex:


Goto routes.php under config directory:
write this listed below line
$route['(:any)'] = "category/show/$1";
create a new file "category.php"
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Category extends CI_Controller {
    public function index() {
    public function show($text) {
            echo "aaaaa".$text;