go get github.com/go-sql-driver/mysql@latest
<!--cut-here-->
Но так вы не сможете контролировать максимальное количество символов.Написал чепуху, ибо сможете конечно контролировать символы, проверяя именно этот участок, предварительно вычистив теги. А так же можно и теги определённые на этом участке запретить.
/* Режим разработки */
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
defined('YII_ENV_TEST') or define('YII_ENV_TEST', true);
if (YII_ENV_DEV) {
/* Debug */
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
'allowedIPs' => ['172.16.0.2', '::1'],
];
/* GII */
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = 'yii\gii\Module';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['172.16.0.2', '::1'],
];
}
Note: The Active Record attributes are named after the associated table columns in a case-sensitive manner. Yii automatically defines an attribute in Active Record for every column of the associated table. You should NOT redeclare any of the attributes.
var csrfToken = $('meta[name="csrf-token"]').attr("content");
$.ajax({
.....
data: {param1: param1, _csrf : csrfToken},
});