Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 209

Přidáno uživatelem Roman Ševčík před více než 15 roky(ů)

Integrace PHPGACL konfiguračních souborů do kohany.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/config/version.php
<?php defined('SYSPATH') or die('No direct script access.'); +<?php defined('SYSPATH') or die('No direct script access.');
$config['version'] = 176;
$config['version'] = 176;
freenetis/trunk/kohana/application/config/database.php.dist
<?php defined('SYSPATH') or die('No direct script access.');
/**
* @package Database
*
......
* name is used when loading the database library, the group named "default"
* will be used.
*
* For FreeNetIS is required separate connection identifier to each parts -
* driver, domains, password, user and database.
*/
$connection = array
(
'driver' => 'mysql',
'user' => 'user',
'password' => 'password',
'host' => 'host',
'database' => 'database',
);
/*
* Each group can be connected to independantly, and multiple groups can be
* connected at once.
*
......
* object - Enable or disable object results
* cache - Enable or disable query caching
*/
$config['default'] = array
(
'benchmark' => TRUE,
'persistent' => FALSE,
'connection' => 'mysql://user:password@server/db',
'connection' => $connection['driver'].'://'.$connection['user'].':'.$connection['password'].'@'.$connection['host'].'/'.$connection['database'],
'character_set' => 'utf8',
'table_prefix' => '',
'object' => TRUE,
'cache' => FALSE
);
);

Také k dispozici: Unified diff