\himiklab\yii2\recaptcha\ReCaptchaValidator::className()
не пускает null $model->price = implode(',',$model->price)
$range = explode(',',$this->price);
$query->filterWhere([
'and',
['>', 'somePriceAttr', $range[0]],
['<', 'somePriceAttr', $range[1]]
]);
down vote
accepted
First you need to configure your databases like below:
return [
'components' => [
'db1' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=db1name', //maybe other dbms such as psql,...
'username' => 'db1username',
'password' => 'db1password',
],
'db2' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=db2name', // Maybe other DBMS such as psql (PostgreSQL),...
'username' => 'db2username',
'password' => 'db2password',
],
],
];
public function getDb() {
return Yii::$app->db1;
}
что прям мы не знаем как он генерируется
var data = $.naidiChtoNibud();
$('.someConteiner').samReshi(data);
<div esliClick="zapustiAnimaziu" kogdza="cherez10minut">кнопка</div>