Yii Framework
Yii is a popular PHP framework, for efficiently developing
fast and secure web applications and APIs.
It comes with comprehensive documentation
and a large amount of extensions
that provide useful functionality.
Here are 479 public repositories matching this topic...
What steps will reproduce the problem?
yii migrate
What's expected?
execute the migration successfully
What do you get instead?
Exception 'yii\base\InvalidConfigException' with message 'Failed to instantiate component or class "db".'
Additional info
| Q | A |
|---|---|
| Yii version | This is Yii version 2.0.32. |
| PHP versi |
-
Updated
May 20, 2020 - PHP
running in windows
when running installer
Exception 'yii\db\Exception' with message 'SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
The SQL being executed was: SELECT * FROM configurable'
-
Updated
May 28, 2020 - PHP
-
Updated
May 15, 2020 - PHP
What steps will reproduce the problem?
For example:
Trying to autocomplete Yii::$app->user->identity-> in an IDE (PHPStorm/Netbeans/etc...) does not show methods and properties of the configured identityClass. This is because the IDE has no knowledge about the Yii specific configuration.
We can add hints for these in a file e.g. config/__autocomplete.php:
<?php
/**-
Updated
May 28, 2020 - PHP
yiisoft / yii2-codeception - is no longer relevant. It is registered in the dependencies samdark / yii2-shop
I decided to try installing $ composer require dmstr / yii2-adminlte-asset "^ 2.1" in yi2-shop (samdark) and connect nested-sets and now the composer got out: 'Package yiisoft / yii2-codeception is abandoned, you should avoid using it. Use codeception / codeception instead '. in comp
What steps will reproduce the problem?
What's expected?
working on yii2 with elasticsearch 7 but it is not supported (typless not supported)
What do you get instead?
Yii2 elasticse
-
Updated
Aug 12, 2018 - PHP
-
Updated
May 21, 2018
yii2-mongodb扩展建议增加在复制集环境下的配置引导和说明
以下配置是经过验证的复制集配置,但是连接超时没有设置。
以下是一个复制集例子
return [
'class' => '\yii\mongodb\Connection',
'dsn' => 'mongodb://user:pqssword@s1._test.mongodb.domain.cn:30000,s2.mongodb.domain.cn:30000,s3._test.mongodb.domain.cn:30000/databasename',
];
希望增加关于 connectTimeout 和socketTimeout 的config case
Additional info
| Q | A
|
How does the Yii2 Imagine handle exif data in an updated or new image?
Image::getImagine()->open($image)->save($output, ['quality' => 50]);
exif meta data will disappear, does not save the exif
Now bash-completion work only for root user. User www-data does not have .bashrc file with
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion.d/yii ]; then
. /etc/bash_completion.d/yii
fi
fi
I have a monitor with a resolution of 1366px wide. When I open a documentation article, the table of contents doesn't show in the right sidebar nor at the top of the article.
For example, this is what I see when I open https://www.yiiframework.com/doc/guide/2.0/en/tutorial-yii-integration in my 1366px wide monitor:
, так как в app.php и bot.php есть повторяющиеся записи (sexuality, birthday, ...)
-
Updated
Oct 18, 2017 - PHP
-
Updated
May 22, 2020 - PHP
Here we're implying that in order to be able to modify bootstrap CSS, we should not install bootstrap from npm, and that we should maintain it manually instead.
The statement is obviously wrong, and I think that we might want to recommend a more modern approach, like using bo
-
Updated
Apr 20, 2020 - PHP
Released December 2008
- Organization
- yiisoft
- Website
- www.yiiframework.com
- Wikipedia
- Wikipedia
In console/Controller.php we can read:
/** * Prints a string to STDOUT. * * You may optionally format the string with ANSI codes by * passing additional parameters using the constants defined in [[\yii\helpers\Console]]. * * Example: * * ``` * $this->stdout('This will be red and underlined.', Console::FG_RED, Console::UNDERLINE);