Can't call second function in codeigniter controller
I'm new to codeigniter I have a problem
I am using my OS X Lion and I am using .htaccess
I can call directly localhost / site_folder / it works like a charm but I have a second function in my controller but I cannot directly call this function like this localhost / site_folder / function2
here is my controller
class My_site extends CI_Controller {
function __construct() {
parent::__construct();
}
function index() {
--some script--
}
function function2() {
--some script--
}
}
and it says url not found why?
Thank you
+3
source to share
4 answers