Welcome Guest, Not a member yet? Register   Sign In
Routing in codeigniter

This is my code in routes.php

$route['default_controller'] = "admin";
$route['(:any)'] = $route['default_controller']."/index/";

This is my url:


But i cant to get the value in `index()` in `admin` controller.
I want to get the value `jklmn` in `admin` controller.If there is any mistake in my routing code.

This is my index() code;

function index($key = ""){
$newkey = $key;
$data['key'] = $key;


When i taking above link in browser i get the error message below:

Not Found

The requested URL /visio/jklmn was not found on this server.

Theme © iAndrew 2016 - Forum software by © MyBB