Content. php {code...} template. php {code...} originally used the ob_start function to output OOXX content to the template. Is there an alternative? This seems to occupy a lot of memory, and I don't think it is necessary to buffer it ~ I found that the variable can be parsed, and the function won't work. I will continue to use it ~ Http :...
Content. php
ob_start();OOXX;$ooxx = ob_get_clean();
Template. php
echo $ooxx;
In the original function, the ob_start function outputs OOXX content to the template. Is there an alternative? This seems to occupy a lot of memory, and I don't think it is necessary to buffer it ~
I found that the variable can be parsed, and the function won't work. I will continue to use it ~ Http://thinkdiff.net/php/alternative-way-of-assigning-html-in-php-php-tips/
Content. php
$ooxx = <<
template.php
echo $ooxx;
Reply content:
Content. php
ob_start();OOXX;$ooxx = ob_get_clean();
Template. php
echo $ooxx;
In the original function, the ob_start function outputs OOXX content to the template. Is there an alternative? This seems to occupy a lot of memory, and I don't think it is necessary to buffer it ~
I found that the variable can be parsed, and the function won't work. I will continue to use it ~ Http://thinkdiff.net/php/alternative-way-of-assigning-html-in-php-php-tips/
Content. php
$ooxx = <<
template.php
echo $ooxx;
ob_startVery expensiveCPUInstead of memory? The first time I heard this, it described the performance of this function. Master station, honest and practical !! No alternative
If you do not need to replace the content before the output, you do not need to directly output the content. No replacement scheme...
I don't know why. I called ob when rendering the template.Start. In $ this->View-> render ();