PHP code example of jakota / typo3toolbox
1. Go to this page and download the library: Download jakota/typo3toolbox library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jakota / typo3toolbox example snippets
$query = $this->createQuery();
DebuggerUtility::debugQuery($query)
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('table')->createQueryBuilder();
$queryBuilder
->select('*')
->from('table')
->where(
$queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter(123)),
)
->setMaxResults(1)
;
DebuggerUtility::debugQuery($queryBuilder)