Witam,
mam pytanie ma ktoś jakiś gotowy kod, aby tabela
$table = new \IPS\Helpers\Table\Db( 'x', \IPS\Http\Url::internal( 'app=xxx&module=x&controller=xx' ) );
/* Columns we need */
$table->include = array( 'id', 'x', 'x', 'x' );
$table->mainColumn = 'id';
$table->langPrefix = 'x_';
$table->tableTemplate = array( \IPS\Theme::i()->getTemplate( 'tables', 'core', 'admin' ), 'table' );
$table->rowsTemplate = array( \IPS\Theme::i()->getTemplate( 'tables', 'core', 'admin' ), 'rows' );
/* Default sort options */
$table->sortBy = $table->sortBy ?: 'id';
$table->sortDirection = $table->sortDirection ?: 'desc';
$table->noSort = array( 'x', 'x', 'x );
/* Search */
/* CUSTOM */
$table->parsers = array(
);
$table->title = 'XXX';
/* Display */
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'xxx', 'xxx', 'front' )->xxx( $table );
To jest kod dla tabelki, która wyciąga z obecnej bazy, tam gdzie jest forum, a jak wyciągnąć z innej bazy, nie mam pojęcia jak podłączyć inną bazę pod gotową tabele.
Z góry dziękuje