开发者

How can I use the CodeIgniter Output Compression properly?

开发者 https://www.devze.com 2022-12-22 14:59 出处:网络
It says not to \"echo\" when using it. So how开发者_高级运维 do I put in variable in my views?By not using echo it means in your libraries, models, and controllers. Your views are after the output buf

It says not to "echo" when using it. So how开发者_高级运维 do I put in variable in my views?


By not using echo it means in your libraries, models, and controllers. Your views are after the output buffer has been called by the output class. you should be fine.


Straight from the codeignitor documentation....

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消