Archive | Codeigniter

RSS feed for this section

How to use in codeigniter?

Edit application/config/routes.php add following line of code $route['(.*)'] = "welcome/index/$1"; Edit your welcome.php controller as follows <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Welcome extends CI_Controller { public function index($username) { //$this->load->view('welcome_message'); echo "Username is ".$username; } } you need to write .htaccess file for removing the index.php file from your […]

Read full story Comments { 0 }