WordPress admin panel custom landing page after login

Redirect to different landing page after successful login on wordpress admin panel, if user not a super admin. In your theme’s functions.php:

Change default admin page for specific role(s) […]

Yii2 get logged in user details

On successful login the user information will be stored in Yii::$app->user->identity variable. The authenticated user identity information can be retrieved via Yii::$app->user->identity //To get whole logged […]

How to create custom widget in Yii2

This tutorial will show you how you can create your own custom widget in Yii2. Widgets are reusable blocks and they are used in your views. The main advantage of Widget is you can write once and reuse it wherever you need […]

Css div 100% height

This tutorial will show you how to set 100% full height div with CSS with simple lines. The percentage (%) is a relative unit so the resulting height depends on the height of parent element’s height. So we must set HTML […]

Yii2 – GridView set default sort column

This tutorial will teach you, setting default specific sort column for your GridView. With the following code, you can set the specific column as default sorting column. Possible sorting options are SORT_DESC and SORT_ASC. […]

How to send e-mail from YII2 Application

Hi there, This tutorial will show you how to send emails from the yii2 application. Sending emails from the yii2 application is not a tedious task, in fact, we just need to edit/add the config options in your config file. […]

How to use mPDF In Yiiframework 2

Hello there, Today I would like to show you how to integrate mPDF library with Yii framework 2.First, let me give you some basic information about mPDF. mPDF is a PHP Class by using this we can easily generate PDF files […]

How to create custom Component in Yii2

Hi there, Today I would like to write a simple tutorial on creating custom Component in Yii2 and I will show you how to use created a component in your application. Here are the simple steps, just follow the step at the […]

Yii2 Transaction

In this tutorial, I would like to show you how we can use transactions in YII2. A transaction is used to run a group of operations in the single process means a transaction is a unit of work. Why should I use transaction? […]

How to make a drop down list in yii2?

In this tutorial, I would like to show you making the dropdown list in yii2 using different data sources like static array data and database table modal data. First I would like to share basic syntax – here you go… […]

DMCA.com Protection Status