codex icon indicating copy to clipboard operation
codex copied to clipboard

Добавление префикса к ключам в мемкэше

Open talyguryn opened this issue 8 years ago • 0 comments

В файл application/classes/Dao/MySQL/Base.php надо добавить следующий код

protected $db_name = 'Database_Name';
public function __construct()
{
    $config = Kohana::$config->load('database')->default;
    $connection = $config['connection'];

    $this->db_name = Arr::get($connection, 'database', $this->db_name);
}

talyguryn avatar Apr 01 '17 05:04 talyguryn