S
S
Sergey Beloventsev2016-07-19 16:21:43
Yii
Sergey Beloventsev, 2016-07-19 16:21:43

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

2 answer(s)
D
Dmitry Kim, 2016-07-19
@Sergalas

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 LoginFormhave a constant in scenario. If it is not there, then you have errors suppressed, but not on the hosting.

L
Lander, 2016-07-19
@usdglander

Are you sure that there are none on the local x?
Maybe just the error display level is set like that?
Add to index.php:

ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

and make sure :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question