yii2

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 1,753 public repositories matching this topic...
NEW UI Locations
The Plugin page in the Store could use some layout adjustments. The Install buttons are often pushed down the page with long content above. This UI could be anchored up top. A common location for this UI would be helpful with muscle memory, always navigating to this ui's location.
Many of the informational pieces could be moved to the sidebar below the Documentation and R
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 |
REST API Guide
One of the issues I have just ran into, is using Yii2 to create a REST API. The official docs lack in this area (and many others). It takes into account, assumptions, that you know where things go. While I have used Yii2 for a while, it still would be nice to get the full story, instead of bits and pieces and having to find the rest. The docs say "Implement xxx", but doesn't tell you how, so we ha
This migration fails on PostgreSql database version 12 stating that
`alter column slug in table {{%article}} to string(255) NOT NULL ...Exception: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error (near: "NOT")
LINE 1: ...BLE "article" ALTER COLUMN "slug"
Please, add ability to use badges in Menu
public $linkTemplate = '<a href="{url}">{icon} {label} {badge}</a>';
public $badgeTemplate = '<span class="pull-right-container"><small class="label pull-right {color}">{text}</small></span>';
- Take a look at AdminLTE left menu "mailbox" item (it have a badges): https://adminlte.io/themes/AdminLTE/index2.html
-
Updated
Jul 2, 2020 - PHP
I have error when try delay 30 days in AMQP Interop driver and enqueue/amqp-bunny transport
and rabbit with installed RabbitMQ Delayed Message Plugin. After inspect code and documentation i discover what rabbitmq delayed message plugin max delay is 2^32 milliseconds (~50 days) and bunny have limit for headers 2^31 milliseconds (~25 days)
/user/forgot
Does not check for existence email in database.
Q | A |
---|---|
Yii2 version 2.0.15 | |
Yii2-user version 0.9.14.0 | |
PHP version 7.2 |
Help me please!
Messages translation
Объединить распространенные и часто используемые переводы в один файл (например, common.php), так как в app.php и bot.php есть повторяющиеся записи (sexuality, birthday, ...)
As LUYA will enhanced continuously, some translations will be added from time to time, therefore i created this issue in order to see who did translations and everybody can subscribe to the issue to get notified when new translations came up.
In order to help us extend LUYA translations or fix incomplete translations please take a look at the linkes files below.
Required
For **up
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
'
.env文件:
FRONTEND_URL = /yii2admin/frontend/web
BACKEND_URL = /yii2admin/backend/web
STORAGE_URL = /yii2admin/storage
nginx.conf文件:
# 前台重写
location /yii2admin/frontend/web/ {
try_files $uri /yii2admin/frontend/web/index.php?$args;
}
# 后台重写
location /yii2admin/backend/web/ {
try_files $uri /yii2admin/backend/web/index.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
Jun 12, 2020 - PHP
In main.php set-up the attributes to session cookie.
The sameSite attibute to strict:
'session' => [
'class' => 'yii\web\CacheSession',
'name' => 'mysession',
'timeout' => 86400,
'useCookies' => true,
'cookieParams' => [
'httponly' => true,
'secure'
-
Updated
Jul 5, 2020 - PHP
Hello guys,
What steps will reproduce the problem?
When I go to my website to a CRUD and want to update a row of a chapter, and press on "UPDATE" to save the data, there will come an routing_missing_exception error of ElasticSearch. For deleting it is exactly the same thing.
What's expected?
Saved data, redirect to the index page.
What do you get instead?
ElasticSearch er
there is no example code for this scope, action for create/update (MultipleInput) with main model and related. Thanks
-
Updated
May 21, 2018
-
Updated
Jun 28, 2020 - CSS
-
Updated
Nov 12, 2019 - PHP
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
|
Released December 2008
- Organization
- yiisoft
- Website
- www.yiiframework.com
- Wikipedia
- Wikipedia
Additional info
I'm following this guide to convert scss files to css files.
In the css array from my AppAsset I have to add
scss/myFile.scss
to yii r