Snaps in all categories

Gettin logged user in yii2 framework...

yii2 php logged user get

Custom styles with responsive text with media queries. Desktop first queries 10 different settings and additional font weight and style classes....

css css3 bootstrap

Check if request is post....

php yii2 post

Yii2 check if record exists with where condition...

yii2 php

Check if request is ajax request....

yii2 php ajax request

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

Code for select input made from table. Dropdown not using $form->model...

php framework yii2 view drop-down

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

Making array from table referenced by foreign key for view made from table having referenced id....

php framework yii2 view foreign-key

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

php yii2 datareader array

Displaying checkbox for boolean value from database on active form. For example model has field - active....

yii2 active-form checkbox

php

Clarification will help for people who aren't sure. You first create a variable to store your information, then call the php date function so that it is stored in the variable. Add format parameters so the date is displayed the way you'd like i...

php mysql date

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

Getting parameter from request...

yii2 parameter request get

yii2 - get current module controller and action on view...

php yii2 url route action

Get url for subit values from view to php using ajax in Yii framework...

ajax url yii2

To create module migration in module folder --migrationPath can be used. In console navigate to project root and use following command to create migration file....

yii2 migration module console

php

This code will get array of particular key from another array with array_map function....

php array array-map

This is AppDelegate code for register push notyfications. Its working with parse.com Remember to change "***" to keys of your app and uplaod Push Certificate to setting of your app on parse.com...

swift swift-ios

Products can have many tags. If model has getter for getting related tags, tags objects can be read with theese getter. Model also has to have tags property declared. Getter and property can be generated with gee with model generation, or can be...

yii2 php frameworks activerecord