Actually I have in MyTable.php, ie, the following DS:
protected function dataSource()
{
return AutoMaker::table('portal_users');
}
I would like to put all the SQLs in their own files, so I can reuse it if needed in other boards. The only way I know to do it now is like:
protected function dataSource()
{
return require('My_portal_users.sql.php');
}
There is a better way? Maybe some dashboard class where I can have a file like MyQueries.php and use it where needed as in MyTable.php?