URL から「index.php」を削除したい
http://localhost/simpleblog/index.php/blogger/NewBlogs
私はそれが必要です
http://localhost/simpleblog/blogger/NewBlogs
ここに私のコントローラーコードを示します
class Blogger extends CI_Controller {
public function NewBlogs()
{
$this->load->helper('url');
$this->layout="Yes"; //<-- add this*/
/* $this->load->view('welcome_message');*/
$this->load->view('Pages/SecondPage');
}
}
デフォルトのコントローラー
public function index()
{
$this->load->helper('url');
$this->layout="Yes"; //<-- add this*/
/* $this->load->view('welcome_message');*/
$this->load->view('Pages/MainPage');
}
index.php を削除するには?