Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3744

Data from outside SQL sent to client

$
0
0

Hi,

is there a way to add data to the SSP file that does not come from the SQL tables but is created by PHP?

In my example, I'm displaying news items in the Editor table. In the SSP I'd like to add the amount of files in a certain folder (its name contains the SQL id) and show this number in the DataTable as additional column. This column, of course, can not be edited by the client.

My SSP at the moment looks like this:

$editor = Editor::inst(
  $db, 'tablename', 
       'tablename.id' /* Primary Key */
)
->fields(
  Field::inst('...all columns...'),
);

I have no clue how to 'sideload' additional PHP-generated data. Can you help me out? Thx


Viewing all articles
Browse latest Browse all 3744

Trending Articles