Wei Lai Shi mall system developed analytical software framework

Development Language: PHP

Database: MySQL

Development Framework: TP5

First, the configuration file defines

In the  applitation\database.php configuration parameters 
database.php


type parameter

1. Support namespace complete definition

2. Without namespace definitions, defaults \ think \ db \ connector as a namespace 

Wei Lai Shi mall system development, Wei Lai Shi mall system model development, Wei Lai Shi system development platform, Wei Lai Shi mall development, Wei Lai Shi software development, system development Lai Shi Wei, Wei Lai Shi APP development, system development consulting: Xie Jian I34.222O.2839 Java, PHP, NET

Development needs rules:

Awards 1: Recommended purchase delivery card benefits

Partner Businesses buy delivery card, reward 15 yuan / Zhang

Partners recommend partners to buy delivery card, take the same level of reward 50,000 yuan / Zhang

2 awards

Recommend a friend Become a fan of platform installation - and replace the filter to get a commission;

3 awards

Businesses share the profit performance

Each features a solicitation to buy the business card you can get performance delivery points profit

4 awards

Enjoy Wei Lai Shi mall system proxy 30% of revenue,

If it is, then you're 10,000 3,000 yuan,

If 200,000, that income 60,000 yuan

5 awards

Recommended partner change the filter

Each filter has a replacement income of 20 dollars.

 

Extended database-driven self-defined, it can be configured to:

// database type
'type' => '\ ORG \ DB \ Mysql',
. 1
2
\ ORG \ DB \ Mysql type connector as a database showing the drive connection to the database is employed instead of the default \ think \ db \ connector \ Mysql .

V5.0.6 + version, support Mysql reconnection mechanism, off by default, if required, is to add database configuration file:

// Open reconnection
'break_reconnect' => to true,
. 1
2
connection parameters

Built-in parameters used

:: = ATTR_CASE the PDO> :: CASE_NATURAL the PDO,
the PDO ATTR_ERRMODE = ::> :: ERRMODE_EXCEPTION the PDO,
the PDO ATTR_ORACLE_NULLS = ::> :: NULL_NATURAL the PDO,
the PDO :: = ATTR_STRINGIFY_FETCHES> to false,
the PDO :: = ATTR_EMULATE_PREPARES> to false,
. 1
2
. 3
. 4
. 5
connected params parameters set in the configuration database will be built and combined setting parameters

 

Embodiment, the use of long connection, and the database returns the column names in lower case, can be defined:

'params' => [
\ PDO :: = ATTR_PERSISTENT> to true,
\ ATTR_CASE PDO :: => \ :: CASE_LOWER PDO,
],
. 1
2
. 3
. 4
Note: You can configure any connection parameters params PDO supported in the inside.
----------------
Disclaimer: This article is CSDN blogger "ywcmoon 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/qq_39251267/article/details/82108357

Guess you like

Origin www.cnblogs.com/44587754xiejian/p/11936034.html