Skip to content

Instantly share code, notes, and snippets.

@chris-at-github
chris-at-github / include_path.txt
Created August 17, 2019 09:28
Current directory (./) is not within PHP include path include_path = C:\Users\pschorr\Xampp_7.3.7\php\PEAR Normally the current path '.' is included in the include_path of PHP. Although TYPO3 does not rely on this, it is an unusual setting that may i
@see: https://stackoverflow.com/questions/44715589/current-directory-is-not-within-php-include-path-xammp
You need to fix your include_path in php.ini.
In that file you will find a line that says something similar to:
"include_path = C:\xampp7\php\PEAR".
To fix change the line below
From include_path=C:\xampp7\php\PEAR to include_path=".;C:\xampp7\php\PEAR"
# Datenbank einrichten
sudo mysql -u root
CREATE DATABASE NAME CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL ON NAME.* TO 'USER' IDENTIFIED BY 'PASSWORT';
quit
@chris-at-github
chris-at-github / install.sh
Last active November 9, 2018 05:17
Wget, TYPO3, Tar
# Letzte 9.x Version laden
wget -O typo3_src-9.x.tar.gz --content-disposition get.typo3.org/9
# TAR File entpacken -> erzeugt automatisch richtigen Ordner
# @see: https://pascalebeier.de/tar-und-tar-gz-dateien-entpacken/
tar -xvf typo3_src-9.x.tar.gz
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:EXTENSION_DIR/Configuration/TypoScript/CONSTANTS_ROOT.t3s">
<?php return array (
'front' => array(
'noErrorHandler' => true,
'throwExceptions' => true,
'useDefaultControllerAlways' => true,
'disableOutputBuffering' => true,
'showException' => true,
),
);
<?php
// siehe get GetFrontendController.php
$this->getFrontend()->sys_language_content;
// direkter Aufruf
$GLOBALS['TSFE']->sys_language_content;
<?php
/**
* @return \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
*/
protected function getFrontend() {
return $GLOBALS['TSFE'];
}
/**
* @return \TYPO3\CMS\Core\Database\DatabaseConnection
*/
protected function getDatabase() {
return $GLOBALS['TYPO3_DB'];
}