私は登録ページを作成するためにhmvcを使用しています:-URLに今私は入力しています:-http://localhost/CI/index.php/user/registration
userはモジュール名です
コントローラー:-registration.php
<?php
class Registration extends MX_Controller{
function index() {
$this->load->view('homepage');
}
function register(){
$this->load->view('registrationPage');
}
}
?>
ビュー:-homepage.php
<html>
<body>
<a href="registration/register">register</a>
</body>
</html>
問題は、私のURLhttp://localhost/CI/index.php/user/registration/register
に登録ページにアクセスするために入力する必要があることです。
どうhttp://localhost/CI/index.php/user/register
すればこれができるのか。base_urlの設定が機能せず、ルートの設定も機能しません。これは、URLにモジュール名を指定せずに任意のページに移動することは可能ですか?