を見つけていない私は成功した私は、チュートリアルを従っていましたし、私のプロジェクトに新しいコントローラを追加した上で
後で歓迎インデックスページを開いてCIをインストールしたUbuntuの10.10とCodeIgniterの2.0.2
使用します。- 渡す引数 - ページ
class Start extends CI_Controller{
var $base;
var $css;
function __construct() {
parent::__construct();
$this->base=$this->config->item('base_url');
$this->css=$this->config->item('css');
}
function hello($name){
$data['css'] = $this->css;
$data['base'] = $this->base;
$data['mytitle'] = 'Welcome to this site';
$data['mytext'] = "Hello, $name, now we're getting dynamic!";
$this->load->view('testview', $data);
}
}
と同様に、ビュー(testview.php
)とcss変数です。 http://localhost/ci/index.php/index/start/hello/fred
を実行してテストしようとすると、404 page not found
が得られます。
は
は、URLが 'HTTPではないでしょうか? –
うん、URLの基底をよく見ていない、ちょうど彼が 'hello'関数を呼んでいないことに気づいた。 – jondavidjohn
あなたが言ったように私はやったが、同じ問題が残っている。それはいくつかのApacheの設定のものですか? –