Alexander Alexander - 6 months ago 63
PHP Question

Include typo3 LocalConfiguration.php

How can I include typo3's LocalConfiguration.php into my script (which is NOT inside typo3)? Since that file returns an array:

return [
'BE' => [

I thought I have to put the include into a function:

function getConf() {
$conf = getConf();

but the output is empty.


Just inlcude it directly to the variable:

$conf = include 'typo3conf/LocalConfiguration.php';