Yii Framework Forum: Firebird - yii2 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Firebird - yii2 Rate Topic: -----

#1 User is offline   luis ledesma 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 17-December 17

Posted 17 December 2017 - 11:04 AM

Hola.
Estoy iniciando en yii2 y tengo una base de datos en firebird, y la verdad que siempre tengo problemas en conseguir soporte para este muy buen motor de base de datos.

No consigo hacer que yii se conecte con firebird. Ya intalé el adaptador de edgardmessias pero no logro conectarme.
en db.php tengo esto:
return [
            'class' => 'edgardmessias\db\firebird\Connection',
            'dsn' => 'firebid:dbname=c:\xampp\htdocs\yii.fdb',
            'driverName' =>'firebird',
            'username' => 'sysdba',
            'password' => 'masterkey',
            'charset' => 'utf8',
];


luego

class alumnos extends ActiveRecord{
    
    public static function getDb()
    {
        return Yii::$app->db;
    }
    
    public static function tableName()
    {
        return 'alumnos';
    }



y no se conecta, me tira este error:

Invalid Configuration – yii\base\InvalidConfigException

The table does not exist: alumnos

in C:\xampp\htdocs\yii\basic\vendor\yiisoft\yii2\db\ActiveRecord.php

Perdón si es no respeta las reglas del foro.

Muchas gracias y saludos
0

#2 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,498
  • Joined: 16-February 11
  • Location:Japan

Posted 17 December 2017 - 05:57 PM

/* Moved from "General Discussions" to "International - Spanish" */

Please use English in "General Discussions".

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users