• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I use ob_start with redirect


I have view page submit its form to some controller then redirect back to the view page with new records.

I'm sure there is no blank spaces. I tried this solution and its works fine with me:

I set output_buffering = On on php.ini file.

but I need to use ob_start()instance of changing php configuration file.

How I can do it in my situation:
view sent form -> controller update database record -> controller redirect to view page again with new records.

Where should I write this function in my code?

Message error:

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at D:\Programs\xampp\htdocs\Students_Website\application\models\cpanel_model.php:1)

Filename: helpers/url_helper.php

Line Number: 546

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.