Snaps in all categories

yii2 select query using raw query binding parameters and data reader...

php yii2 datareader array

To delete broken records nested subquery must be used, because mysql does not have ability to delete from subquery on the same table....

mysql delete nested subquery

For get query from ActiveRecord:...

php framework yii2 activerecord

kohana - Html render anchor with route...

php kohana HTML anchor

php

To get class from namespace path array_pop can be used....

php namespace

Yii2 Active form has two options form enable disable client side validation and ajax validation. Theese option can be set true or false....

php framework yii2 form validation

For check if checkbox is check selector ":checked" can be used....

checkbox state

Yii

yii2 - ActiveForm - specify controller and action. Controller and action are specified in 'action' key of $options array. Also other properties can be used....

php yii controller action form

To find logged user Auth::instance->get_user() method should be used....

php framework kohana logged user

php

Finding subarrays having given property value. Condition for filtering can be used like: and, or...

php array array-filter find

Check if request is post....

php yii2 post

php

php - find index of array for given value...

php array search key

Models generated by Yii2 framework has text input on active form for boolean values. Text input can be changed to dropdown....

php framework yii2 dropdownbox

This code triggers function click on button after one second....

timer

Variable $groups is an array taken from database or created any other way. Variable $group is used to initialize dropdown list. Any item can be added first to this array first....

php yii2 array dropdownlist

php

php - delete items with empty values from array...

php array delete empty-string

php

Declaring variables with dynamic names from associative array....

php variable dynamic declaration array

Checking if clicked element has class with particular name....

class element

Iterate array with jquery and check if key starting with text...

foreach array checkin key

Check if request is ajax request....

yii2 php ajax request