php - Codeigniter redirect in case of error on localhost -


i have installed wamp server on localhost. , created application using codeigniter framework.

i using redirect(url) method in controller. if error found in same controller, page redirects url. on server not redirect , showing error. same functionality want on localhost.

how achieve it?

controller appointments extends ci_controller {    function index()     {         load view     }     function save()     {          $customer_id=$c_id; //accessing undeclared variable $c_id error          redirect(base_url("appointments"))      } } 

in above code error been occured @ $customer_id=$c_id; rediection should prevented , error should shown. error shows when files on server not showing error on localhost.

i got answer

set output_buffering = off in php.ini file

refere link php header location - not displaying error?


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -