[eluser]rahendz[/eluser]
I create controller like structure below :
Code:
controller
- app
-- index.php
and inside index.php i put controller class like below :
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Index extends CI_Controller {
public function index()
{
echo "Here i am";
}
}
/* End of file index.php */
/* Location: ./application/controllers/zudan/index.php */
and i accessed using this url like below :
Code:
http://localhost/index.php/app/index
and it show that echoing twice like below :
so what i'm gonna ask is Controller Class with Index as a Name of Class not recommended since it called twice? or i got something wrong? thanks before and sorry for my bad english.