for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiqdev\thememanager\widgets;
class TextPage extends \yii\base\Widget
{
protected $header;
protected $footer;
public function init()
$this->start();
}
public function run()
return $this->render('TextPage', [
'content' => $this->finish(),
'header' => $this->header,
'footer' => $this->footer,
]);
public function beginHeader()
public function endHeader()
$this->header = $this->finish();
public function beginFooter()
public function endFooter()
$this->footer = $this->finish();
protected function start()
ob_start();
ob_implicit_flush(false);
protected function finish()
return ob_get_clean();