Skip to content

Conversation

@ribafs
Copy link

@ribafs ribafs commented Aug 24, 2019

To use Postgresql I change config.php add:
define('DB_PORT', '5432');// 3306 or 5432

And change application/Core/Model.php on end:
$dsn = DB_TYPE . ':host=' . DB_HOST . ';port ='. DB_PORT . ';dbname=' . DB_NAME;// . $databaseEncodingenc;
$this->db = new PDO($dsn , DB_USER, DB_PASS, $options);

so it worked cool

P.S.:
Very tanks for your good works.
I finally managed to create a PHP application with MVC using MINI3. :)

@ribafs
Copy link
Author

ribafs commented Aug 24, 2019

To works with PostgreSQL.

@ribafs ribafs changed the title Develop - Correcting errors in execution with postgresql Correcting errors in execution with postgresql Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants