!function($) {
$.fn.hoverWithTimeout = function(timeout, callback) {
$(this).each(function() {
var $this = $(this);
var timer;
$this.on('mouseover', function(e) {
timer = setTimeout(function() {
callback.call($this, e);
}, timeout);
});
$this.on('mouseout', function() {
clearTimeout(timer);
});
});
};
}(jQuery);
$model = Product::findOne(['id'=>1]);
$model->name="Новое название";
$model->save();
SELECT
s.name
,sum(r.value)
FROM sites as s
LEFT JOIN reviews as r ON s.id = r.id_site
GROUP BY s.id
preg_match_all("/(^|\s)один(\s|$)/",$text);
<input type="hidden" name="_csrf" value="<?=Yii::$app->request->getCsrfToken()?>" />