-1

Please see the file directory

 controller
    -student
    --dashboard_student.php
    --edit_profile.php

//at edit_profile.php

public function method1(){
$parameter_1='XYZ';
$parameter_2='ABC';
redirect('student/dashboard_student/method2/'.$parameter_1.'/'.$parameter_2); 
}

//at dashboard_student.php

 public function method2($parameter_1,$parameter_2){
    echo $parameter_1.','.$parameter_2;
    }

when I run this code, found:

404 Page Not Found
The page you requested was not found.

But Expect:

XYZ,ABC
Safiul
  • 13
  • 4

1 Answers1

-2

please use for getting value's from parameter in CI

$this->uri->segment(x);

where x belong to your parameter number.

atta afridi
  • 111
  • 5
  • Is this the answer related to your question? Question is about how to redirect – Bergin Oct 23 '18 at 07:46
  • Not exactly!! but i found it as a different way... I also found a concept of MY_Controller by which it become eazy – Safiul Oct 24 '18 at 04:36