私はcodeIgniterとLinuxも初めてです。実行しようとすると、 がhttp://localhost/CodeIgniter/hello/first_page
表示されます404 Error: Page not found
。私のコントローラークラス:
/*hello.php*/
class Hello extends CI_Controller
{
function __construct() {
parent::__construct();
}
function first_page()
{
$this->load->view('first_view');
}
}
そして私first_view.php
は:
<html>
<head>
<title>First CI Page</title>
</head>
<body>
Hi Folks !
</body>
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
?>
</html>
注意:http://localhost/CodeIgniter
ウェルカム メッセージが表示されます。また、すべてのファイルが実行可能です (777)