 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
h1vp
Joined: 24 Jul 2007 Posts: 2
|
Posted: Tue Jul 31, 2007 4:34 pm Post subject: DataGrid, DataSource, MDB2 |
|
|
I am trying to get MDB2 to work with DataGrid, I tried the following but get back "Unknown Renderer driver. Please specify an existing driver."
<?php
$datagrid =& new Structures_DataGrid(20);
$datadriver = new Structures_DataGrid_DataSource_MDB2();
// Setup your database connection
$sql ="select * from stores";
$options = array('dbc' => $db);
// Bind a basic SQL statement as datasource
$datadriver->bind($sql,$options);
$test = $datagrid->bindDataSource($datadriver);
// Print binding error if any
if (PEAR::isError($test)) {
echo $test->getMessage();
}
// Print the DataGrid with the default renderer (HTML Table)
$test = $datagrid->render();
// Print rendering error if any
if (PEAR::isError($test)) {
echo $test->getMessage();
}
?>
I am using the following..
Structures_DataGrid 0.8.3 beta
Structures_DataGrid_DataSource_MDB2 0.1.10 beta
MDB2 2.3.0 stable
MDB2_Driver_mysql 1.3.0 stable |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
|
| Back to top |
|
 |
h1vp
Joined: 24 Jul 2007 Posts: 2
|
Posted: Tue Jul 31, 2007 4:54 pm Post subject: DataGrid, DataSource, MDB2 |
|
|
| mark wrote: | | http://pear.php.net/manual/en/package.structures.structures-datagrid.installation.php |
thanks, u were right missing a package |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|