php.htaccesscodeignitercontrollerclean-urls

can't call the second function in controller codeigniter


I'm new in codeigniter I have problem

I use my OS X Lion, and I use .htaccess I can call directly localhost/site_folder/ it works like charm, but I have second function in my controller but I can't directly call that function like this localhost/site_folder/function2

here my controller

class My_site extends CI_Controller {
function __construct() {
  parent::__construct();
  }
function index() {
  --some script--
  }
function function2() {
  --some script--
  }
}

and it's says url not found, why?

thank you


Solution

  • I found the solutions on this forum http://ellislab.com/forums/viewthread/210578/