fabinou
(Fabien Sierras)
March 10, 2015, 4:07pm
1
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
timmy78
(Timothee Planchais)
March 10, 2015, 4:23pm
2
The file doesn’t exist.
The problem comes from the file "vendor\yiisoft\yii2\widgets\ContentDecorator.php"
Delete it and update composer (discard yes)
fabinou
(Fabien Sierras)
March 10, 2015, 4:38pm
3
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
Maybe i didnt understand your instruction ?
Fab
fabinou
(Fabien Sierras)
March 11, 2015, 2:19pm
4
fabinou:
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
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
fabinou
(Fabien Sierras)
March 11, 2015, 2:35pm
5
fabinou:
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
fabinou
(Fabien Sierras)
March 11, 2015, 2:57pm
6
Well, reinstalled all, and now it’s work … I don’t understand, but it’s ok.