$(body),on("click",".deleteSomething",function(){
$.ajax({
url: "htt://site.ru/delete",
data:{"id":$(this).closest(".something").find(".id").val()}
})
.done(function( data ) {
$(this).closest(".something").remove();
$.fn.yiiListView.update("id-list");
});
})
@media (max-width: 500px) {
img {
display: none;
}
}
echo CHtml::link('settings',array('users/settings','userId'=>$user->id));
public function get%attributeName%(){
return $this->%relationName%->%attributeName%;
}
$model->get%attributeName%(); // вариант 1
$model->%attributeName%; // вариант 2
<div class="btn-group">
<button id="v1" type="button" class="btn btn-primary active">один</button>
<button id="v2" type="button" class="btn btn-primary">два</button>
<button id="v3" type="button" class="btn btn-primary">три</button>
</div>
<script>
myVid=document.getElementById("video1");
myVid.play();
</script>
Mozilla/5.0 (iPad; U; CPU OS 6_1 like Mac OS X; ja-jp) AppleWebKit/536.26 (KHTML, like Gecko) Version/6 Mobile/10B141 Safari/8536.25
window.stop();
public function actionIndex() {
$criteria = new CDbCriteria;
$criteria->addCondition(" (SELECT COUNT(*) FROM `UsersMotivations` WHERE userID = t.ID AND `motivationID` IN (:motivationID) ) > 0 ");
$criteria->params[":motivationID"] = implode(',',array(1,2));
$dataProvider = new CActiveDataProvider('Users',array(
'criteria'=>$criteria,
'pagination'=>array('pageSize'=>10)
));
$this->render('index', array( 'dataProvider' => $dataProvider));
}