ob_start();
// тут контент
$out = ob_get_contents();
ob_end_clean();
\header('Content-Length: ' . strlen($out));
echo $out;
<?php
namespace app\modules\admin;
use Yii;
use yii\base\BootstrapInterface;
use yii\base\InvalidConfigException;
use yii\web\Application;
/**
* admin module definition class
*/
class Module extends \yii\base\Module implements BootstrapInterface
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'app\modules\admin\controllers';
/**
* @inheritdoc
*/
public function init()
{
parent::init();
}
public function bootstrap($app)
{
if ($app instanceof Application) {
$app->getAssetManager()->baseUrl = '@web/assets-admin';
$app->getAssetManager()->basePath = $_SERVER['DOCUMENT_ROOT'] . '/web/assets-admin';
}
}
}
<div class="vid_materialov3" onclick="window.location.href = 'https://google.com';"></div>
<div class="vid_materialov3" onclick="window.location.href = '<?= $url ?>';"></div>
раскиданы они по «подпапкам»
$results = $wpdb->get_results("SELECT COUNT(user_id) as count
FROM `wp_konkurs`
WHERE ( `user_email` = 'mail@mail.ru' ) AND ( DATE(user_time) = ' $nowDate ' ) ;
");
$result[0]->count