I have a simple Backbone Application where I want to fetch the data from my MySQL Database, but I don't know how to connect to the DB. Do i have to create a folder, where in that new folder I create an index.php where I define the db-connection and all the SELECT * FROM queries etc?
My file structure is:
index.php
[css]
[js]
[app]
[collections]
[models]
[routers]
[templates]
[views]
mainpage.js
config.js
[lib]
[backbone]
[hanlebars]
[requirejs]
[jquery]
I guess I also have to define it in the config too?
Any suggestion is welcome...