私のコントローラCodeIgniterの月リンクは
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class Calendar extends MX_Controller
{
function index()
{
$this -> display($year=null, $month=null);
}
function display($year=null,$month=null)
{
if(! $this->bitauth->logged_in())
{
$this->session->set_userdata('redir', current_url());
redirect('access/login');
}
$data['header']=Modules::run('header/header/index');
$data['footer']=Modules::run('footer/footer/index');
$conf=array(
'start_day'=>'monday',
'day_type'=> 'long',
'show_next_prev'=>true,
'next_prev_url'=>'http://datacentral.demo/calendar/'
);
$this->load->library('calendar',$conf);
$this->load->view('calendar',$data);
}
}
マイビュー
<?php echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4)); ?>
を動作しません。私は月を変更すると、URLは通常例えば見えます。 http://example.com/calendar/2017/06でも、この404エラーが見つかりませんでした。
設定ファイルで指定されたルートがありません。私は何が欠けていますか?
を私はリンクをクリックしたときにそれが今エラーが消えていた、初めだが、月は変化しません:P私は仮定したルートで何かが起こっていますか? – marilena6