How can I use ob_start with redirect |
[eluser]Unknown[/eluser]
Hi, 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: http://digitalpbk.com/php/warning-cannot...ready-sent 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 |
Welcome Guest, Not a member yet? Register Sign In |