When we create an action in controller then why we don't use it static
Public static function actionLogin(){
}
Because the controller is being instantiated and the actions might access properties of the controller.
$this
The whole application get the $this
from controller classes, so we cannot use the static keyword.