Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

From Where The Database Is Connected. Rate Topic   - - - - -

 

Posted 29 October 2020 - 10:09 AM #1

Hello,

I have checked the core files. I was curious how the database is setup on cscart.

I finded out that the database is always connected to the storefront and just need to implement the queries.
I have looked in the Tygh files. In Database/Connection.php There the coded related to the database initiate, etc code is written. As well as in fn.database.php.

 

I want to know where the database is initialized like in where or in which file connect function is called to the connect database for the first time.

 

As, I have used grep command to look in which files db_initilize is used. It is used only once. and in that function only connect is written.

Can anyone guide me. 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21203 posts

Posted 29 October 2020 - 01:55 PM #2

Please find connection to database here

 

app/Tygh/Backend/Database/Mysqli.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)