Comments (5)
Hi,
Can you show your configuration? In the model the database table name is set to settings
plural and with a lowercase "s". Are you using your own model?
from yii2-settings.
Hi,
my configuration is pretty basic, have a look at this snippet. I did not change any of your code, no custom models, just plain installation.
The table name is set to:
public static function tableName()
{
return '{{%settings}}';
}
It might be worth mentioning that I use PHP7, however this should make no difference...
from yii2-settings.
You're using yii2mod\settings\Module
which started as a fork of this project. It was in your stack trace from above but I missed it before. This project is pheme/yii2-settings
from yii2-settings.
Doh! You are absolutely right... Had both included in my composer.json
, used the migration of this module but the code of the other one... sorry. Deleted the yii2mod module, changed configuration and it works now.
Thanks for your help and sorry for my misunderstanding.
from yii2-settings.
Not a problem. Glad to help :)
from yii2-settings.
Related Issues (20)
- Exception on getting empty value which was saved as an object in db HOT 13
- Unable to locate message source for category 'extensions/yii2-settings/settings'. HOT 6
- Migration Fails with Exception: SQLSTATE[42000]: Syntax error or access violation: 1071 HOT 1
- How to seed settings HOT 6
- Settings cache problem HOT 6
- Custom form and upload image HOT 1
- Sort list alphabetically
- Invalid type when set type is "email" HOT 2
- Tag a new release HOT 1
- Descriptions for settings
- Custom form, numeric input problem HOT 11
- Tag 0.5 (stable) HOT 1
- migratoin error HOT 8
- Empty settings input fields saved as object HOT 11
- Using with sqlite
- please make a stable release HOT 1
- Update this extension for new version of Yii framework(2.0.14) HOT 3
- Object of class stdClass could not be converted to string
- Problem in editable save state
- problem save
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-settings.