Ejemplo n.º 1
0
<?php

require "../../vendor/php-activerecord/php-activerecord/ActiveRecord.php";
date_default_timezone_set('America/Sao_Paulo');
$cfg = ActiveRecord\Config::instance();
$cfg->set_model_directory('../../app/models');
// $cfg->set_connections(array('development' => 'mysql://*****:*****@localhost/mudam510_base;charset=utf8'));
// $cfg->set_connections(array('development' => 'mysql://*****:*****@localhost/bitfa068_mudamuda;charset=utf8'));
$cfg->set_connections(array('development' => 'mysql://*****:*****@localhost/mudamuda;charset=utf8'));
ActiveRecord\Connection::$datetime_format = 'Y-m-d H:i:s';