Welcome Guest, Not a member yet? Register   Sign In
compression problem and wrong MIMIC
#2

[eluser]pistolPete[/eluser]
[quote author="Dennis_gull" date="1251816982"] any ideas why I get this error message?[/quote]

Just read the comment above the setting:
Code:
/* ...
| VERY IMPORTANT:  If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts.  For
| compression to work, nothing can be sent before the output buffer is called
| by the output class.  Do not "echo" any values with compression enabled.
|
*/
$config['compress_output'] = TRUE;
You must use a view, don't echo from the controller.
You could use a very simple view like this:

ajax_view.php
Code:
<?php
echo $ajax_data;

ajax_controller.php
Code:
<?php
class Ajax_controller extends Controller {

    function some_function()
    {
        $data = array('ajax_data' => 'some data');
        $this->load->view('ajax_view', $data);
    }
}


Messages In This Thread
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 03:56 AM
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 04:13 AM
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 11:55 AM
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 07:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB