Skip to content

Instantly share code, notes, and snippets.

@pengmaradi
Last active October 24, 2016 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pengmaradi/55ec28ed567b73de389da305d79fdd7b to your computer and use it in GitHub Desktop.
Save pengmaradi/55ec28ed567b73de389da305d79fdd7b to your computer and use it in GitHub Desktop.
Extbase iconfile in TYPO3 7.6

Extbase in TYPO3 7.6 has no Icons

TCA/domain.php

'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('exrkey') . 'Resources/Public/Icons/tx_extkey_domain_model_images.gif'
'iconfile' => 'EXT:extkey/Re...',
@pengmaradi
Copy link
Author

TYPO3 debug

ob_start();
$GLOBALS['TYPO3_DB']->debugOutput = true;
$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = true;
debug(
            array(  
                'class: ' => __CLASS__,
                'method: ' => __METHOD__,
                'function: ' => __FUNCTION__,
                // what to debug
                $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery,
            ),
            'Debug line: '. __LINE__.' File: '. __FILE__
);

@pengmaradi
Copy link
Author

pengmaradi commented Oct 24, 2016

$beuser = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow(
    'realName',
    'be_users',
    'uid = "'. $row['author']. '"'
);
if(!empty($beuser)) {
    $row['author'] = $beuser['realName'];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment