Comments (6)
Ok it works now.
It was missing the database autoloading. 😄
from starter-public-edition-4.
If you want to store settings, you must have a connected database that contains the table 'settings', see the comments here: https://github.com/ivantcholakov/starter-public-edition-4/blob/v4.2.38/platform/common/models/Settings_model.php
If this explanation is not enough, you have access to my unpublished CMS, check how storing settings is implemented there, in the administration panel.
from starter-public-edition-4.
I have connected database too and configured accordingly in Settings_model too but it doesn't work.
And i have checked to the unpublished cms but there is working smoothly and i don't find what makes it work in cms and not in this starter edition.
from starter-public-edition-4.
The demo database settings... remove them. https://github.com/ivantcholakov/starter-public-edition-4/blob/v4.2.38/platform/applications/front/config/database.php
Delete this file.
from starter-public-edition-4.
I have deleted the above file, but not resolved. 😞
from starter-public-edition-4.
I did a test, it works for me. I can't guess what are you doing. I've prepared a clean application skeleton, without the demo code, so, you can try it.
Take this file, uncompress and install it.
https://drive.google.com/open?id=0BwlVg_yQ8MHBbDhqUFExcjJQY3M
Import the file on the root directory starter_test.sql within your MySQL server into a newly created database 'starter_test'.
Open the file platform/common/config/database.php and adjust there the connection settings for the newly created database.
Just for knowing, open the file platform/common/config/autoload.php You would see that within $autoload['libraries'] setting 'database' entry has been added by me.
Open the welcome (home) page of the site. On the page you will see a test with your example that works.
from starter-public-edition-4.
Related Issues (20)
- PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/msql.so HOT 4
- Plans for 4.4 HOT 8
- Where is "Support for database stored settings (Settings library)." database? HOT 2
- $this->uri->segments() should not return the language segment. HOT 2
- db question HOT 7
- email config HOT 5
- Deleting Cache Dir HOT 5
- different language for applications HOT 3
- Read the language settings from the database HOT 3
- multiple applications HOT 2
- Notes: Advanced CRUD using DataTables, a visual sample
- Email templates and global XSS filtering HOT 1
- Cache Issue HOT 4
- Sub-dropdown HOT 3
- Install using composer HOT 2
- composer packages explication / question HOT 2
- Screenshots HOT 25
- Datatable HOT 1
- Starter Public Edition 5 HOT 2
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 starter-public-edition-4.