Answer the question
In order to leave comments, you need to log in
Why does Getting unknown property: common\models\LoginForm::secenario occur?
There is no error on the local server, but on the hosting there is an error Getting unknown property: common\models\LoginForm::secenario do not tell me why?
Answer the question
In order to leave comments, you need to log in
Let's start with the fact that common\models\LoginForm::secenario
- this is most likely invalid code. Valid is: common\models\LoginForm::secenarios()
or, for example, common\models\LoginForm::SCENARIO_DEFAULT
. In your case, the code will only work if you LoginForm
have a constant in scenario
. If it is not there, then you have errors suppressed, but not on the hosting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question