Code Monkey home page Code Monkey logo

Comments (6)

krishnaguragain avatar krishnaguragain commented on September 3, 2024 1

Ok it works now.
It was missing the database autoloading. 😄

from starter-public-edition-4.

ivantcholakov avatar ivantcholakov commented on September 3, 2024

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.

krishnaguragain avatar krishnaguragain commented on September 3, 2024

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.

ivantcholakov avatar ivantcholakov commented on September 3, 2024

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.

krishnaguragain avatar krishnaguragain commented on September 3, 2024

I have deleted the above file, but not resolved. 😞

from starter-public-edition-4.

ivantcholakov avatar ivantcholakov commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.