[['username', 'email', 'phone', 'ava', 'id', 'auth_key', 'token', 'status', 'pass'], 'required'],
return $this->pass === md5($password);
public function attributeLabels()
{
retunr [
'name' => Yii::t('app', 'Name')
];
}
<p><a class="btn btn-default" href="<?= Url::to(['detalies-skill']) ?>">Ссылка</a></p>
return $this->render('DetaliesSkill');
echo $form->field($model, '[0]date')->widget(DatePicker::className(),[
'options' => [
'data' => [
'picker' => 'datepicker'
]
]
])
$('#plus').on('click', function(){
/* какой-то Ваш код */
$('#testForm')..find('.hasDatepicker').datepicker('destroy');
$('#testForm').find('input[data-picker=datepicker]').datepicker();
/* какой-то Ваш код */
})
'Contact should contain at least 4 characters.'
'MIN_ERROR' => 'Contact should contain at least 4 characters.'
'message' => Yii::t('app', 'MIN_ERROR')
public $jsOptions
. А вот для css, я думаю, надо будет переопределить защищённые методы renderBodyEndHtml() и renderHeadHtml() <IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} ^/.*
RewriteRule ^(.*)$ web/$1 [L]
RewriteCond %{REQUEST_URI} !^/web/
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ web/index.php
</IfModule>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
use \yii\web\Request;
$baseUrl = str_replace('/web', '', (new Request)->getBaseUrl());
return [
'components' => [
'request' => [
'baseUrl' => $baseUrl,
],
],
];
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'' => 'site/index'
],
],
localhost/mysite
у Вас должна будет открыться главная страница Вашего проекта, без "web" в адресной строке. стоит ли каждую таблицу создавать и удалять в отдельной миграции
#id .mbutton{****}
'assetManager' => [
'bundles' => [
/* 'yii\web\JqueryAsset' => [
'js' => []
],
'yii\bootstrap\BootstrapAsset' => [
'css' => []
],
'yii\bootstrap\BootstrapPluginsAsset' => [
'js' => []
]*/
],
'linkAssets' => true,
],
Можно ли наряду с переменной $content использовать другую переменную?
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(admin)
RewriteRule ^admin(\/?.*)$ backend/web/$1 [L]
RewriteCond %{REQUEST_URI} ^/
RewriteRule ^(\/?.*)$ frontend/web/$1 [L]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php