Extbase - get created sql from query

后端 未结 8 1891
感动是毒
感动是毒 2020-12-01 21:35

i want to get some database tables from my typo3 extensions. The Extension is based on extbase.

The query always returns nothing but the data exists

I\'ve tr

8条回答
  •  北海茫月
    2020-12-01 22:39

    I just extended the above snippet, with a $_GET condition. for debugging, just append "?dbg_table=tx_some_of_my_tables" to your address, and you're ready to go ;-)

    if (in_array($_GET['dbg_table'], $sql['tables'])) {
            echo('
    '.$statement.'
    '); }

提交回复
热议问题