Welcome Guest, Not a member yet? Register   Sign In
ERR_TOO_MANY_REDIRECTS
#1

Mohon bimbingannya teman-teman senior, lagi belajar CI di aplikasi saya muncul ERR_TOO_MANY_REDIRECTS, 

controller :

$this->load->view('course/'.$id.'/forward.php');

views di file forward.php :

header("location:".base_url().'course/run?email='.$email.'&id='.$id);

dari views ini saya redirect ke index.html.
mohon bantuannya. Terima kasih
Reply
#2

Try this, it's the way your view link is formed.
PHP Code:
$this->load->view("course/{$id}/forward.php"); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(06-23-2021, 01:03 AM)InsiteFX Wrote: Try this, it's the way your view link is formed.
PHP Code:
$this->load->view("course/{$id}/forward.php"); 

Thank you for your reply, I was tried your code but errors still occurred.

Thank you
Reply
#4

(06-22-2021, 11:45 PM)dhoengpreth Wrote: Mohon bimbingannya teman-teman senior, lagi belajar CI di aplikasi saya muncul ERR_TOO_MANY_REDIRECTS, 

controller :

$this->load->view('course/'.$id.'/forward.php');

views di file forward.php :

header("location:".base_url().'course/run?email='.$email.'&id='.$id);

dari views ini saya redirect ke index.html.
mohon bantuannya. Terima kasih

Biasanya error ini muncul karena controller atau route redirect ke view yang sama.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB