0

コード エラーを解消する必要がありますが、ここではステータス コードが 303 と表示され、「もっと見る」と表示されます。プレビューと応答にも「応答データの読み込みに失敗しました」と表示されます。

リダイレクト行が削除されると、ステータス コードは 200 と表示されます。

以下は私のコントローラー機能です。

public function sendmail()
{
    $config = array(
        // config data
    );

    $this->email->initialize($config);

    $senderEmail = $this->input->post('senderEmail');
    $senderName = $this->input->post('senderName');
    $content = $this->input->post('emailcont');


    if ($this->emailModel->sendmail($senderEmail, $senderName, $content)) {
        $this->session->set_flashdata("email_sent","Email sent successfully.");  
        redirect('AboutController');
    }
    else {
        $this->session->set_flashdata("email_sent","Error in sending Email.");
    }       
}

これが起こっている理由は何ですか?

4

1 に答える 1