Jump to content

DB Table


Kajetan Mruk

Recommended Posts

Posted

Hey,

right now I am using IPS v4.2.6, it would be greate if there is function for \IPS\Helpers\Table\DB like there is in \IPS\Patterns\ActiveRecord called db(). It would so much easier to work on external databases. What I did to make that work: I declared static function called db() like in ActiveRecord and replaced every occurence of \IPS\Db::i() to self::db() in function getRows() in my extended class. It is working fine, but it will be better to overwrite one function of class instead of two of them.

Cheers,

Kajetan 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...