PHP code example of facile-it / zf1-dbal-adapter
1. Go to this page and download the library: Download facile-it/zf1-dbal-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
facile-it / zf1-dbal-adapter example snippets
$connection = $container->get(\Doctrine\DBAL\Connection::class); // Get your DBAL connection
$adapter = new Facile\ZF1DbAdapter\Mysql\MysqlDBALAdapter($connection);
Zend_Db_Table::setDefaultAdapter($adapter);