When we create an action in controller then why we don't use it static
Public static function actionLogin(){
}
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.