Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/php.x/advanced/vendor/yiisoft/yii2/base/Object.php on line 77
--- Добавлено --- А вы уступаете инвалидам место в автобусе ? - Да б...., еще как уступаю! Бугагага...
я понимаю, что невозможно использовать этот объект Я просто сам юии скачал и вышла ошибка пытаюсь по видеокурсу учить --- Добавлено --- PHP: class Object implements Configurable { /** * Returns the fully qualified name of this class. * @return string the fully qualified name of this class. */ public static function className() { return get_called_class(); } /** * Constructor. * The default implementation does two things: * * - Initializes the object with the given configuration `$config`. * - Call [[init()]]. * * If this method is overridden in a child class, it is recommended that * * - the last parameter of the constructor is a configuration array, like `$config` here. * - call the parent implementation at the end of the constructor. * * @param array $config name-value pairs that will be used to initialize the object properties */ public function __construct($config = []) { if (!empty($config)) { Yii::configure($this, $config); } $this->init(); } /** * Initializes the object. * This method is invoked at the end of the constructor after the object is initialized with the * given configuration. */ public function init() { } /** * Returns the value of an object property. * * Do not call this method directly as it is a PHP magic method that * will be implicitly called when executing `$value = $object->property;`. * @param string $name the property name * @return mixed the property value * @throws UnknownPropertyException if the property is not defined * @throws InvalidCallException if the property is write-only * @see __set() */
Официальный гайд на русском языке: https://www.yiiframework.com/doc/guide/2.0/ru. Зачем какие-то ещё видеокурсы и прочая дребедень?
Не знаю что тебе мешает, но ты не учишь, а жалуешься. Что ты понял из этой темы, расскажи. Тебе дали всё, что надо. Ты справился с этой ошибкой?