Trouble with GII

Hello all,

I’m new into Yii, and i have a problem when using Gii. I can access to the homepage of Gii, where i can choose from creating Model, Controller, etc …

But when i clic on any choice, i have errors like this one :

Invalid Parameter – yii\base\InvalidParamException

The view file does not exist: D:\projets\cirva\vendor/yiisoft/yii2-gii/views/layouts/components.php

in D:\projets\cirva\vendor\yiisoft\yii2\widgets\ContentDecorator.php – yii\base\View::renderFile(’@yii/gii/views/layouts/component…’, [‘content’ => ‘<div class=“row”> <div class…’])

whatever choice i make.

And after looking in the dir, yes components.php isn’t here.

What’s wrong ?

Thanks a lot,

Fab

The file doesn’t exist.

The problem comes from the file "vendor\yiisoft\yii2\widgets\ContentDecorator.php"

Delete it and update composer (discard yes)

Hello

Thanks you very much for you help.

I tried to delete this file, but composer update answered me there’s nothing to update. So i downloaded back only this, file but of course i have the same error :confused:

Maybe i didnt understand your instruction ?

Fab

I look in the code, and it’s this call

<?php $this->beginContent(’@yii/gii/views/layouts/components.php’); ?> in vendor\yiisoft\yii2-gii\views\layouts\generator.php wich cause a problem since this file doesn’t exist.

But how to fix this ?

Thanks to anybody who can help me

Looks like an install problem since on github this line isn’t the same oO

Well, reinstalled all, and now it’s work … I don’t understand, but it’s ok. :blink: