DataGrid - Important Syntax Changes in new versions >= 8.x.x

Discuss everything related to ApPHP DataGrid class. All versions. Any questions related to the ApPHP DataGrid developing or using should be posted to this forum.
Please, check out Knowledge Base first before you post a question.

Moderator: alexandrleonenko

Forum rules
Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.
Site Admin
Site Admin
Posts: 6015
Joined: Jan 7th, '09, 23:18

DataGrid - Important Syntax Changes in new versions >= 8.x.x

Postby administrator » Jan 30th, '17, 20:54

There are some important changes in version 8.x.x
Please this post carefully.

From DataGrid version 8.2.0 support of PEAR extension was stopped.
Only PDO is supported from now.
Because there is no need to specify extension, these changes affected on definition of DataSource method.

Old Format:

Code: Select all

$dgrid->DataSource("PDO", "mysql", $DB_HOST, $DB_NAME, $DB_USER, $DB_PASS, $sql, $default_order);

New Format:

Code: Select all

$dgrid->DataSource("mysql", $DB_HOST, $DB_NAME, $DB_USER, $DB_PASS, $sql, $default_order);

Return to “ApPHP DataGrid”