PHP testing code

Php code posted by Rui Gonçalves
created at 28 Feb 17:43, updated at 01 Mar 20:37

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
<? php

require_once 'php-activerecord/ActiveRecord.php';

ActiveRecord\Config::initialize(function($cfg)
{
    $cfg->set_model_directory('models');
    $cfg->set_connections(array(
        'development' => 'mysql://username:password@localhost/database_name'));
});

?>
280 Bytes in 4 ms with coderay