Код: Выделить всё
Unknown Property – yii\base\UnknownPropertyException
Getting unknown property: yii\web\Application::manager
1. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/base/Component.php at line 143
134135136137138139140141142143144145146147148149150151152 foreach ($this->_behaviors as $behavior) {
if ($behavior->canGetProperty($name)) {
return $behavior->$name;
}
}
}
if (method_exists($this, 'set' . $name)) {
throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name);
} else {
throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name);
}
}
/**
* Sets the value of a component property.
* This method will check in the following order and act accordingly:
*
* - a property defined by a setter: set the property value
* - an event in the format of "on xyz": attach the handler to the event "xyz"
2. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/di/ServiceLocator.php – yii\base\Component::__get('manager') at line 73
3. in /home/cabinet/web/nc.com/public_html/vendor/dektrium/yii2-user/controllers/SecurityController.php – yii\di\ServiceLocator::__get('manager') at line 79
73747576777879808182838485 * Displays the login page.
*
* @return string|\yii\web\Response
*/
public function actionLogin()
{
$model = $this->module->manager->createLoginForm();
if ($model->load(\Yii::$app->getRequest()->post()) && $model->login()) {
return $this->goBack();
}
return $this->render('login', [
4. dektrium\user\controllers\SecurityController::actionLogin()
5. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/base/InlineAction.php – call_user_func_array([app\controllers\LoginController, 'actionLogin'], []) at line 55
6. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/base/Controller.php – yii\base\InlineAction::runWithParams(['r' => 'login/login']) at line 150
7. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/base/Module.php – yii\base\Controller::runAction('login', ['r' => 'login/login']) at line 462
8. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/web/Application.php – yii\base\Module::runAction('login/login', ['r' => 'login/login']) at line 83
9. in /home/cabinet/web/nc.com/public_html/vendor/yiisoft/yii2/base/Application.php – yii\web\Application::handleRequest(yii\web\Request) at line 371
10. in /home/cabinet/web/nc.com/public_html/web/index.php – yii\base\Application::run() at line 12
6789101112
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../config/web.php');