PHP Classes

File: examples/orm/orm_config.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/orm/orm_config.php   Download  
File: examples/orm/orm_config.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 379 bytes
 

Contents

Class file image Download
<?php

#include_once 'A/Db/Pdo.php';
#include_once 'A/Locator.php';

$locator = new A_Locator();
$locator->register(array(
       
'A_Db_Pdo' => array(
           
'__construct' => array($config['db']),
            ),
        )
    );
#$db = $locator->get('DB', 'A_Db_Pdo') or die ('Error: could not connect to DB');
$db = new A_Db_Pdo($config['db']) or die ('Error: could not connect to DB');