<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>Yii</title>
    <description>Yii is a high-performance PHP framework best for developing Web 2.0 applications.</description>
    <pubDate>Sat, 13 Jun 2026 18:31:34 +0000</pubDate>
    <lastBuildDate>Sat, 13 Jun 2026 18:31:34 +0000</lastBuildDate>
    <generator>Форум PHP Программистов | PHP.ru</generator>
    <link>https://php.ru/forum/forums/yii.48/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://php.ru/forum/forums/yii.48/index.rss"/>
    <item>
      <title>yii2 то что в шаьблоне bootstrap стили не применяются а с содержимым $content применяются</title>
      <pubDate>Wed, 22 Oct 2025 08:51:38 +0000</pubDate>
      <link>https://php.ru/forum/threads/yii2-to-chto-v-shablone-bootstrap-stili-ne-primenjajutsja-a-s-soderzhimym-content-primenjajutsja.145161/</link>
      <guid>https://php.ru/forum/threads/yii2-to-chto-v-shablone-bootstrap-stili-ne-primenjajutsja-a-s-soderzhimym-content-primenjajutsja.145161/</guid>
      <author>invalid@example.com (Norair_986)</author>
      <dc:creator>Norair_986</dc:creator>
      <content:encoded><![CDATA[yii2 то что в шаблоне bootstrap стили не применяются а с содержимым $content применяются<br />
вот шаблон:<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">use</span> app\assets\AppAsset<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">use</span> yii\helpers\Html<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">AppAsset<span style="color: #339933;">::</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">должно быть <span style="color: #009900;">&#91;</span>IMG<span style="color: #009900;">&#93;</span>https<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//postimg.cc/PNKjjbpN[/IMG] </span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">есть <span style="color: #009900;">&#91;</span>IMG<span style="color: #009900;">&#93;</span>https<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//postimg.cc/XpTDSX8S[/IMG] </span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?</span> &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">beginPage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;!doctype html&gt;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;html lang=&quot;en&quot;&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;head&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &lt;meta charset=&quot;UTF-8&quot;&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &lt;title&gt;document&lt;/title&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">head</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;/head&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;body&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">beginBody</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;hi&gt;basic...</div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/yii2-to-chto-v-shablone-bootstrap-stili-ne-primenjajutsja-a-s-soderzhimym-content-primenjajutsja.145161/" class="internalLink">yii2 то что в шаьблоне bootstrap стили не применяются а с содержимым $content применяются</a>]]></content:encoded>
    </item>
    <item>
      <title>Полтергейст с yii2 и  cookievalidatioonkey</title>
      <pubDate>Fri, 17 Oct 2025 09:17:48 +0000</pubDate>
      <link>https://php.ru/forum/threads/poltergejst-s-yii2-i-cookievalidatioonkey.145117/</link>
      <guid>https://php.ru/forum/threads/poltergejst-s-yii2-i-cookievalidatioonkey.145117/</guid>
      <author>invalid@example.com (Norair_986)</author>
      <dc:creator>Norair_986</dc:creator>
      <content:encoded><![CDATA[выдает ошибку <br />
<span style="font-size: 18px"><b>yii\web\Request::cookieValidationKey must be configured with a secret key.</b><br />
<b>хо в файле web.php  вписано секретное слово</b><br />
<b>вот сам файл</b><br />
<b>

<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$params</span> <span style="color: #339933;">=</span> <span style="color: #b1b100;">require</span> __DIR__ <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/params.php'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #b1b100;">require</span> __DIR__ <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/db.php'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'basic'</span><span style="color: #339933;">,</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0000ff;">'basePath'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" rel="nofollow" href="http://www.php.net/dirname"><span style="color: #990000;">dirname</span></a><span style="color: #009900;">&#40;</span>__DIR__<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0000ff;">'bootstrap'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'log'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0000ff;">'aliases'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900;">&#91;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'@bower'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'@vendor/bower-asset'</span><span style="color: #339933;">,</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'@npm'</span> &nbsp; <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'@vendor/npm-asset'</span><span style="color: #339933;">,</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0000ff;">'components'</span> <span style="color: #339933;">=&gt;...</span></div></li>
</ol></div>
</div></b></span><br />
<br />
<a href="https://php.ru/forum/threads/poltergejst-s-yii2-i-cookievalidatioonkey.145117/" class="internalLink">Полтергейст с yii2 и  cookievalidatioonkey</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Странная проблема при переносе сайта на yii2</title>
      <pubDate>Mon, 25 Dec 2023 07:14:08 +0000</pubDate>
      <link>https://php.ru/forum/threads/strannaja-problema-pri-perenose-sajta-na-yii2.101936/</link>
      <guid>https://php.ru/forum/threads/strannaja-problema-pri-perenose-sajta-na-yii2.101936/</guid>
      <author>invalid@example.com (VaneS)</author>
      <dc:creator>VaneS</dc:creator>
      <content:encoded><![CDATA[Всем доброго дня! Пытаюсь перенести сайт с одного хостинга на другой сервер. Выдает вот такую ошибку:<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">An Error occurred while handling another error:</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">yii\base\InvalidRouteException: Unable to resolve the request &quot;site/error&quot;. in /srv/http/site_ru/vendor/yiisoft/yii2/base/Module.php:537</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Stack trace:</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">#0 /srv/http/site_ru/vendor/yiisoft/yii2/web/ErrorHandler.php(108): yii\base\Module-&gt;runAction()</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">#1 /srv/http/site_ru/vendor/yiisoft/yii2/base/ErrorHandler.php(111):...</div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/strannaja-problema-pri-perenose-sajta-na-yii2.101936/" class="internalLink">Странная проблема при переносе сайта на yii2</a>]]></content:encoded>
      <slash:comments>9</slash:comments>
    </item>
    <item>
      <title>PHP, проверка заполнения форм</title>
      <pubDate>Mon, 19 Jun 2023 06:38:13 +0000</pubDate>
      <link>https://php.ru/forum/threads/php-proverka-zapolnenija-form.101431/</link>
      <guid>https://php.ru/forum/threads/php-proverka-zapolnenija-form.101431/</guid>
      <author>invalid@example.com (peanut)</author>
      <dc:creator>peanut</dc:creator>
      <content:encoded><![CDATA[У меня есть код страницы, сюда нужно добавить функцию проверки заполнения форм, подскажите, пожалуйста, как?<br />
<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;page-model-form&quot;&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$form</span> <span style="color: #339933;">=</span> ActiveForm<span style="color: #339933;">::</span><span style="color: #004000;">begin</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'enctype'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'multipart/form-data'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'jsFormSendJiraRequest'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">field</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$model</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">textInput</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'maxlength'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">field</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$model</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fio'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">textInput</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'maxlength'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">field</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$model</span><span style="color: #339933;">,...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/php-proverka-zapolnenija-form.101431/" class="internalLink">PHP, проверка заполнения форм</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Yii переопределить значение $nullDisplay на странице</title>
      <pubDate>Mon, 13 Feb 2023 13:15:46 +0000</pubDate>
      <link>https://php.ru/forum/threads/yii-pereopredelit-znachenie-nulldisplay-na-stranice.101086/</link>
      <guid>https://php.ru/forum/threads/yii-pereopredelit-znachenie-nulldisplay-na-stranice.101086/</guid>
      <author>invalid@example.com (Alexeii)</author>
      <dc:creator>Alexeii</dc:creator>
      <content:encoded><![CDATA[Подскажите, есть шаблон, формирующий список документов с датой<br />
используется фреймворк Yii ,вот строка<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;td&gt;&lt;?php echo nl2br($formatter-&gt;asDate($contest-&gt;date_begin, $dateFormat)) ?&gt;&lt;/td&gt;</div></li>
</ol></div>
</div>выводит дату документа и (не задано)  при отсутствии даты<br />
можно ли переопределить значение $nullDisplay только для этой страницы?<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$nullDisplay = &quot;свое значение&quot;;</div></li>
</ol></div>
</div>не работает, а дальше я не знаю..]]></content:encoded>
    </item>
    <item>
      <title>Отключить добавление ссылки в пагинацию Pjax</title>
      <pubDate>Sun, 29 Jan 2023 16:47:23 +0000</pubDate>
      <link>https://php.ru/forum/threads/otkljuchit-dobavlenie-ssylki-v-paginaciju-pjax.100988/</link>
      <guid>https://php.ru/forum/threads/otkljuchit-dobavlenie-ssylki-v-paginaciju-pjax.100988/</guid>
      <author>invalid@example.com (ewerost)</author>
      <dc:creator>ewerost</dc:creator>
      <content:encoded><![CDATA[Добрый день!<br />
Кто нибудь может подсказать как отключить добавление к ссылки атрибутов при настройке Pjax<br />
Добавляется ссылка вида<br />
<a href="https://site.ru/read?" target="_blank" class="externalLink" rel="nofollow">https://site.ru/read?</a><b>_pjax=%23p0&amp;</b>page=5<br />
Как отключить добавление того что выделено жирным?]]></content:encoded>
    </item>
    <item>
      <title>yii2 долго создаёт сессию</title>
      <pubDate>Mon, 09 Jan 2023 15:08:49 +0000</pubDate>
      <link>https://php.ru/forum/threads/yii2-dolgo-sozdajot-sessiju.100876/</link>
      <guid>https://php.ru/forum/threads/yii2-dolgo-sozdajot-sessiju.100876/</guid>
      <author>invalid@example.com (yanuzay)</author>
      <dc:creator>yanuzay</dc:creator>
      <content:encoded><![CDATA[сайт на yii2 .<br />
При первой загрузке любой страницы сайта, происходит долгое ожидание загрузки порядка 10 секунд.<br />
<br />
При переходе на любые последующие страницы, сайт загружается не дольше 2 секунд.<br />
<br />
Если удалить куки PHPSESSID , в браузере, и сразу зайти на сайт, то первая загрузка будет 10 секунд, а потом снова быстро.<br />
<br />
Таким образом проблема наверняка в сессии.<br />
<br />
Сессия хранится в файлах в папке /var/lib/session <br />
<br />
Пробовал хранение сессий перенести в базу данных, но лучше не стало.<br />
<br />
Возможно...<br />
<br />
<a href="https://php.ru/forum/threads/yii2-dolgo-sozdajot-sessiju.100876/" class="internalLink">yii2 долго создаёт сессию</a>]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Ошибка 500 ajax contact form</title>
      <pubDate>Thu, 21 Jul 2022 10:17:39 +0000</pubDate>
      <link>https://php.ru/forum/threads/oshibka-500-ajax-contact-form.99590/</link>
      <guid>https://php.ru/forum/threads/oshibka-500-ajax-contact-form.99590/</guid>
      <author>invalid@example.com (joylord)</author>
      <dc:creator>joylord</dc:creator>
      <content:encoded><![CDATA[Добрый день!<br />
<br />
На сайте  YII 2 при отправке перестала работать форма обратной связи. <br />
<br />
В консоле выдает ошибку<br />
<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Javascript):</div>
	<div class="code"><ol class="javascript" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">jquery<span style="color: #339933;">-</span>3.1.0.<span style="color: #660066;">min</span>.<span style="color: #660066;">js</span><span style="color: #339933;">:</span><span style="color: #CC0000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;POST https<span style="color: #339933;">:</span><span style="color: #006600; font-style: italic;">//site.com/site/demo-access 500 (Internal Server Error)</span></div></li>
</ol></div>
</div>Подскажите, чем это может быть связано?]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Просчет среднего числа</title>
      <pubDate>Mon, 18 Jul 2022 05:16:07 +0000</pubDate>
      <link>https://php.ru/forum/threads/proschet-srednego-chisla.99550/</link>
      <guid>https://php.ru/forum/threads/proschet-srednego-chisla.99550/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[Есть массив объектов <img src="http://joxi.ru/EA4NPpyuo37B7m" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://joxi.ru/EA4NPpyuo37B7m" /> <br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$userRating = UserRating::find()-&gt;where(['user_id' =&gt; $id])-&gt;all();</div></li>
</ol></div>
</div>, как просчитать среднее свойства rating?]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Правило в компоненте URLManager</title>
      <pubDate>Thu, 07 Jul 2022 07:11:47 +0000</pubDate>
      <link>https://php.ru/forum/threads/pravilo-v-komponente-urlmanager.99265/</link>
      <guid>https://php.ru/forum/threads/pravilo-v-komponente-urlmanager.99265/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[Правило 

<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; 'rules' =&gt; [</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; ['tasks/view/' =&gt; 'tasks/view'],</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; ],</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
</ol></div>
</div> в компоненте УРЛ Мэнеджер должно вызывать вид single-task в папке tasks, чтобы был рабочим урл 

<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/tasks/view/2</div></li>
</ol></div>
</div> но получаю ошибку  <br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Unknown Property – yii\base\UnknownPropertyException</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Setting unknown property: yii\web\UrlRule::tasks/view/</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
</ol></div>
</div>Что было сделано не так и как поправить ошибку?]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>Метод скачать все файлы</title>
      <pubDate>Wed, 06 Apr 2022 07:37:11 +0000</pubDate>
      <link>https://php.ru/forum/threads/metod-skachat-vse-fajly.98487/</link>
      <guid>https://php.ru/forum/threads/metod-skachat-vse-fajly.98487/</guid>
      <author>invalid@example.com (vla)</author>
      <dc:creator>vla</dc:creator>
      <content:encoded><![CDATA[У меня все устроено так, имеется в базе данных таблица, в которой имеются поля <br />
<br />
path - путь до файла<br />
type - application/pdf<br />
name - наименование файла<br />
<br />
а на сервере хранятся сами файлы.<br />
<br />
Как реализовать на сайте метод, который будет скачивать файлы с сервера? предполагаю что нужно взять путь и прогнать его в цикле, но могу ошибаться... Я просто ниразу не делал эту задачу и пока что не понимаю как к ней подойти, помогите разобраться пожалуйста]]></content:encoded>
    </item>
    <item>
      <title>Не переводит текст</title>
      <pubDate>Wed, 02 Mar 2022 06:39:32 +0000</pubDate>
      <link>https://php.ru/forum/threads/ne-perevodit-tekst.97970/</link>
      <guid>https://php.ru/forum/threads/ne-perevodit-tekst.97970/</guid>
      <author>invalid@example.com (nik12590)</author>
      <dc:creator>nik12590</dc:creator>
      <content:encoded><![CDATA[В коде написано так :<br />
<br />
  $subject = Yii::t(&#039;app&#039;,&#039;Password resetting for WhatsApp Robot&#039;);<br />
<br />
            $message2 =  Yii::t(&#039;app&#039;,&#039;Hello! You have requested to change the passport for WhatsApp Robot &lt;br&gt; If it wasn’t you, please ignore this message. &lt;br&gt;&lt;br&gt; Please follow the link below if you would like to change a password:&lt;br&gt;&#039;).$link_activate.&#039; &lt;br&gt;&lt;br&gt;&#039;;<br />
<br />
<br />
В файле с переводами так :<br />
&#039;Password resetting for WhatsApp Robot&#039; =&gt; &#039;Восстановление пароля WhatsApp Robot&#039;,<br />
    &#039;Hello! You have...<br />
<br />
<a href="https://php.ru/forum/threads/ne-perevodit-tekst.97970/" class="internalLink">Не переводит текст</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Как взять данные с модели YII</title>
      <pubDate>Thu, 09 Dec 2021 15:50:35 +0000</pubDate>
      <link>https://php.ru/forum/threads/kak-vzjat-dannye-s-modeli-yii.96398/</link>
      <guid>https://php.ru/forum/threads/kak-vzjat-dannye-s-modeli-yii.96398/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[Есть код - <a href="http://joxi.ru/Dr8K5nJsoBW0KA" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/Dr8K5nJsoBW0KA</a><br />
<img src="http://joxi.ru/82QV67PSwnvGvA" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://joxi.ru/82QV67PSwnvGvA" /><br />
который стоит в модели Users.php, должен брать данные с таблицы tasks(должен брать вот эти цифры - <img src="http://joxi.ru/krDpX9YhKaznnr" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://joxi.ru/krDpX9YhKaznnr" /><a href="http://joxi.ru/ZrJVlqPSwLzGer" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/ZrJVlqPSwLzGer</a> ). В итоге должен получаться массив цифер, но при попытке вывести в цикле получаю вот это  - <img src="http://joxi.ru/vAWDaYPFgwQ4wr" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://joxi.ru/vAWDaYPFgwQ4wr" /> <a href="http://joxi.ru/KAgK4M6sElbB7A" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/KAgK4M6sElbB7A</a>. Не мог бы кто нибудь подсказать как исправить...<br />
<br />
<a href="https://php.ru/forum/threads/kak-vzjat-dannye-s-modeli-yii.96398/" class="internalLink">Как взять данные с модели YII</a>]]></content:encoded>
    </item>
    <item>
      <title>Поиск и фильтрация на Yii</title>
      <pubDate>Fri, 19 Nov 2021 04:21:13 +0000</pubDate>
      <link>https://php.ru/forum/threads/poisk-i-filtracija-na-yii.95938/</link>
      <guid>https://php.ru/forum/threads/poisk-i-filtracija-na-yii.95938/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[<a href="http://joxi.ru/Vm6yPb8t4MyL7r" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/Vm6yPb8t4MyL7r</a> - Есть куча чекбоксов, 1 чекбокс когда выделили должен искать тут <a href="http://joxi.ru/D2Pj5BPsqL7n4r" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/D2Pj5BPsqL7n4r</a>. Есть ли что то внутри YII2 что поможет такое оживить? Также есть ли нечто внутри YII2 что поможет реализовать поиск с первого скрина? Нету ли примера чтобы просмотреть?]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Напомните пожалуйста метод ограничения вывода с БД</title>
      <pubDate>Wed, 17 Nov 2021 17:46:48 +0000</pubDate>
      <link>https://php.ru/forum/threads/napomnite-pozhalujsta-metod-ogranichenija-vyvoda-s-bd.95925/</link>
      <guid>https://php.ru/forum/threads/napomnite-pozhalujsta-metod-ogranichenija-vyvoda-s-bd.95925/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$users = Users::find()-&gt;with(['activeTasks', 'tags'])-&gt;all();</div></li>
</ol></div>
</div>Мне надо с Users выцарапать только 5 записей. Какой это метод?]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Как сделать чтобы заработала форма с помощью YII2</title>
      <pubDate>Mon, 08 Nov 2021 21:09:07 +0000</pubDate>
      <link>https://php.ru/forum/threads/kak-sdelat-chtoby-zarabotala-forma-s-pomoschju-yii2.95716/</link>
      <guid>https://php.ru/forum/threads/kak-sdelat-chtoby-zarabotala-forma-s-pomoschju-yii2.95716/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[Пытался делать натяжку формы с оф документации впихивая прям во вьюшку вместо начала формы данный код <br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;?php $form = ActiveForm::begin([</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; 'id' =&gt; 'login-form',</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; 'options' =&gt; ['class' =&gt; 'search-task__form'],</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">]) ?&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &lt;fieldset class=&quot;search-task__categories&quot;&gt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;legend&gt;Категории&lt;/legend&gt;</div></li>
</ol></div>
</div> и вызывая на месте чекбокса данный код <br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;?php echo $form-&gt;checkbox([]. 'courier_services');</div></li>
</ol></div>
</div>но вылетает ошибка View не имеет метода checkbox, <br />
1) где надо вызывать...<br />
<br />
<a href="https://php.ru/forum/threads/kak-sdelat-chtoby-zarabotala-forma-s-pomoschju-yii2.95716/" class="internalLink">Как сделать чтобы заработала форма с помощью YII2</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Какие программы-оболочки есть для yii?</title>
      <pubDate>Fri, 05 Nov 2021 06:57:44 +0000</pubDate>
      <link>https://php.ru/forum/threads/kakie-programmy-obolochki-est-dlja-yii.95669/</link>
      <guid>https://php.ru/forum/threads/kakie-programmy-obolochki-est-dlja-yii.95669/</guid>
      <author>invalid@example.com (Доминик России)</author>
      <dc:creator>Доминик России</dc:creator>
      <content:encoded><![CDATA[Какие сейчас есть среды разработки, специализированные под yii?]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Как создать свой виджет (слайдер) в Yii2 ?</title>
      <pubDate>Tue, 19 Oct 2021 10:46:44 +0000</pubDate>
      <link>https://php.ru/forum/threads/kak-sozdat-svoj-vidzhet-slajder-v-yii2.95319/</link>
      <guid>https://php.ru/forum/threads/kak-sozdat-svoj-vidzhet-slajder-v-yii2.95319/</guid>
      <author>invalid@example.com (troinfo12)</author>
      <dc:creator>troinfo12</dc:creator>
      <content:encoded><![CDATA[Привет всем!<br />
<br />
Мне нужен урок по созданию виджета.<br />
<br />
По этой теме погуглил несколько десятков сайтов и нашел примеры создания простых виджетов.<br />
Мне нужно создать стильный слайдер-ползунок (Например: <a href="https://prnt.sc/1wpoprs" target="_blank" class="externalLink" rel="nofollow">https://prnt.sc/1wpoprs</a>) (желательно, с дополнительными настройками, как здесь - <a href="https://demos.krajee.com/slider" target="_blank" class="externalLink" rel="nofollow">https://demos.krajee.com/slider</a> - <a href="https://prnt.sc/1wppyqi" target="_blank" class="externalLink" rel="nofollow">https://prnt.sc/1wppyqi</a>)<br />
<br />
Благодарен всем советам и пожеланиям.]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Хочу вывести текст с БД с помощью ActiveRecord</title>
      <pubDate>Tue, 12 Oct 2021 18:01:57 +0000</pubDate>
      <link>https://php.ru/forum/threads/xochu-vyvesti-tekst-s-bd-s-pomoschju-activerecord.95174/</link>
      <guid>https://php.ru/forum/threads/xochu-vyvesti-tekst-s-bd-s-pomoschju-activerecord.95174/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[Есть 2 таблицы <a href="http://joxi.ru/LmGV13PSwabqyr" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/LmGV13PSwabqyr</a> / <a href="http://joxi.ru/YmEVxkPSwR94Z2" target="_blank" class="externalLink" rel="nofollow">http://joxi.ru/YmEVxkPSwR94Z2</a>. Сделана модель таблицы tags_attribution. Надо вывести все <a href="http://127.0.0.1/openserver/phpmyadmin/sql.php" target="_blank" class="externalLink" rel="nofollow">attributes</a> с таблицы tags_attributes которые принадлежат конкретному user_id (<a href="http://127.0.0.1/openserver/phpmyadmin/sql.php" target="_blank" class="externalLink" rel="nofollow">attributes_id</a> равно id в таблице tags_attribution). Нашел описание в официальной документации ActiveRecord и сделал такой код для извлечения...<br />
<br />
<a href="https://php.ru/forum/threads/xochu-vyvesti-tekst-s-bd-s-pomoschju-activerecord.95174/" class="internalLink">Хочу вывести текст с БД с помощью ActiveRecord</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Не пойму как правильный урл прописать</title>
      <pubDate>Tue, 05 Oct 2021 21:17:35 +0000</pubDate>
      <link>https://php.ru/forum/threads/ne-pojmu-kak-pravilnyj-url-propisat.94875/</link>
      <guid>https://php.ru/forum/threads/ne-pojmu-kak-pravilnyj-url-propisat.94875/</guid>
      <author>invalid@example.com (victor_orlov)</author>
      <dc:creator>victor_orlov</dc:creator>
      <content:encoded><![CDATA[<span style="font-family: 'Arial'"><span style="font-size: 15px">Рендерю в D:\OSPANEL\domains\yii-taskforce\frontend\controllers в файле BrowseController.php<br />
return $this-&gt;render(&#039;tasks&#039;, compact(&#039;tasks&#039;)), получаю Undefined variable: tasks, пробовал по всякому прописывать пути. Не хочет. С extract () и без оного. Ничего не помогает<br />
<br />
конечный вид - D:\OSPANEL\domains\yii-taskforce\frontend\views\site\tasks.php. Какой урл писать нужно в рендер?</span></span>]]></content:encoded>
      <slash:comments>8</slash:comments>
    </item>
  </channel>
</rss>
