Snaps in all categories

php

access class privvate property through getter method...

php getter private property

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

How you can mix pushState with sammy.js while writing single page application. Example is written on top of jQuery. Requesting page from your browser via URLs: localhost/ localhost/example localhost/example/test will not reload the page and it...

spa pushstate routing html5

TimestampBehavior to autmatically set datetime values of created_at and updated_at. If fields have other name than default, names can be overwite...

php yii2 activerecord datetime

To automatically set created_at and updated_at TimestampBehavior can be used. In model extending ActiveRecord put following lines:...

php yii2 date activerecord

php

If class name if for example string class methods can be read with ReflectionClass like this...

php class methods reflection

To solve this error translation configuration must be added to config. In config/web.php add folowing array in 'components' array....

php yii2 translation array

php

Checking if file in $_FILES is an image....

php

Creating module in yii2 can be done in two difrent ways: 1. manually 2. by gii generator Assuming the framework is installed and running and we want to create module called: 'examplemodule'...

php framework yii2 module

Steps for installing Yii2 framework with composer:...

yii2 framework composer

css social share buttons...

HTML

To remove index.php from url:...

php yii2 url

To enable pretty (SEO friendly) url's edit configuration file as follows: For basic yii2 template Edit /config/web.php and add entry into components array like this:...

php yii2 url

When switchery plugin is implemented correctly all what is needed is:...

yii2 checkbox active-form

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

yii2 active-form checkbox

Wobly wiggle that jumps move randomly....

after-effects

Takes position of layer above one with this expression....

after-effects

Takes 2D position (not world space) and uses it to position 3D objects in screen...

after-effects

Takes 3d values of layer and converts to 2d screen space...

after-effects

Layers will overextend, then settle into place on position and rotation keyframes....

after-effects