Yii2 Framework
Wednesday, May 2, 2018
yii2 session handling
›
use yii\web\Session; $session = Yii::$app->session; // start session $session->open(); // close session $session->close(); ...
1 comment:
yii2 kartik datepicker
›
Step 1: Install below extension from github $ php composer.phar require kartik-v/yii2-widget-datepicker "@dev" Step 2: Use ...
Tuesday, May 1, 2018
yii2 bootstrap modal popup
›
For implementing this you need to call default modal of Yii2 and begin and end modal is must In step 2 you need to add javascipt for cal...
3 comments:
yii2 generate random string
›
You can easily generate random string using security class. Yii2 generate unique number $string = Yii::$app->security->generateR...
2 comments:
yii2 gridview custom column
›
In this example you can see Name attribute using as custom column. Yii2 gridview custom column GridView::widget([ 'dataProvider...
Monday, April 30, 2018
yii2 custom validator
›
In this example create a function checkStatus() and apply in the rules like below: If the status is false then it will display the error...
yii2 compare validation
›
In this example you can see password and password_again attributes comparing using compare and compareAttribute . Another example is va...
1 comment:
›
Home
View web version