This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AppBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Class BaseEntity | |
| * @package AppBundle\Entity | |
| * @ORM\MappedSuperclass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AppBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Class Example | |
| * @package AppBundle\Entity | |
| * @ORM\Entity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OLD: export PHP_IDE_CONFIG="serverName=example.dev"; /Applications/MAMP/bin/php/php7.0.12/bin/php -dxdebug.remote_autostart=1 -dxdebug.remote_host=127.0.0.1 /Volumes/Daten/Work/Example/htdocs/typo3/cli_dispatch.phpsh extbase example:cache:cleare exampleenviorment exampleenviorment | |
| NEW: export PHP_IDE_CONFIG="serverName=example.dev"; /Applications/MAMP/bin/php/php7.0.12/bin/php -dxdebug.remote_autostart=1 -dxdebug.remote_host=127.0.0.1 /Volumes/Daten/Work/Example/htdocs/typo3/cli_dispatch.phpsh extbase exampleenviorment example:cache:cleare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add language parameter on shortcuts when the field tx_shortcut_language is not null | |
| 3.IFSUB.additionalParams = &L={field:tx_shortcut_language} | |
| 3.IFSUB.additionalParams.insertData = 1 | |
| 3.IFSUB.additionalParams.if { | |
| value = 4 | |
| equals.field = doktype | |
| } | |
| 3.IFSUB.additionalParams.if.isTrue = 1 | |
| 3.IFSUB.additionalParams.if.isTrue.if { | |
| value = -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function getNameFromNumber($num) { | |
| $numeric = $num % 26; | |
| $letter = chr(65 + $numeric); | |
| $num2 = intval($num / 26); | |
| if ($num2 > 0) { | |
| return $this->getNameFromNumber($num2 - 1) . $letter; | |
| } else { | |
| return $letter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Feststellen des korrekten Namens der Box: vagrant status | |
| 2. Entfernen der VirtualBox-VM: vagrant destroy | |
| 3. Entfernen der Vagrant-Box: vagrant box remove <Box-Name aus Schritt 1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TYPO3 won't use translation files they look like: | |
| <trans-unit id="example"> | |
| <source>Beispiel</source> | |
| <seg-source> | |
| <mrk mtype="seg" mid="108">Beispiel</mrk> | |
| </seg-source> | |
| <target state="final"> | |
| <mrk mtype="seg" mid="108">Example</mrk> | |
| </target> | |
| </trans-unit> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use TYPO3\CMS\Core\Database\ConnectionPool; | |
| use TYPO3\CMS\Core\Database\Query\QueryBuilder; | |
| use TYPO3\CMS\Core\Utility\GeneralUtility; | |
| use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper; | |
| /** | |
| * The repository for ExampleRepository | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This function will remove all suspicious characters from a $_GET parameter | |
| * | |
| * @param $url | |
| * @return array|string|string[]|null | |
| */ | |
| protected function filterUrl($url) | |
| { | |
| if (is_array($url)) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['extensionkey']['UrlReplacements'] = [ | |
| 'newsroom/presse/details/tx_news/' => 'newsroom/presse/', | |
| 'newsroom/aktuelles/details/tx_news/' => 'newsroom/aktuelles/', | |
| 'newsroom/veranstaltungskalender/details/tx_news/' => 'newsroom/veranstaltungskalender/' | |
| ]; |