Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| <?php | |
| declare(strict_types=1); | |
| namespace MyVendor\MyExt\ViewHelpers; | |
| use TYPO3\CMS\Core\Utility\GeneralUtility; | |
| use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; | |
| use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; |
| <?php | |
| namespace In2code\In2template\Migration\Utility; | |
| /** | |
| * Class StringUtility | |
| */ | |
| class StringUtility | |
| { | |
| /** |
| <?php | |
| namespace AppZap\MyExt\Type; | |
| use TYPO3\CMS\Core\Type\TypeInterface; | |
| /** | |
| * In our application we have fields that store time intervals as minutes in the database. | |
| * In our code we want proper DateInterval objects, so we use a TypeInterface to let extbase take care of the conversion. | |
| * | |
| * Usage example on a model property: |
| <html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"> | |
| <link rel="apple-touch-icon" sizes="57x57" href="{f:uri.resource(path:'Favicons/apple-touch-icon-57x57.png')}"> | |
| <link rel="apple-touch-icon" sizes="60x60" href="{f:uri.resource(path:'Favicons/apple-touch-icon-60x60.png')}"> | |
| <link rel="apple-touch-icon" sizes="72x72" href="{f:uri.resource(path:'Favicons/apple-touch-icon-72x72.png')}"> | |
| <link rel="apple-touch-icon" sizes="76x76" href="{f:uri.resource(path:'Favicons/apple-touch-icon-76x76.png')}"> | |
| <link rel="apple-touch-icon" sizes="114x114" href="{f:uri.resource(path:'Favicons/apple-touch-icon-114x114.png')}"> | |
| <link rel="apple-touch-icon" sizes="120x120" href="{f:uri.resource(path:'Favicons/apple-touch-icon-120x120.png')}"> | |
| <link rel="apple-touch-icon" sizes="144x144" href="{f:uri.resource(path:'Favicons/apple-touch-icon-144x144.png')}"> | |
| <link rel="apple-touch-icon" sizes="152x152" href="{f:uri.resource(path:'Favicons/apple-touch-icon-152x152.png')}"> |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| [display] | |
| #fullscreen=true | |
| #viewport=1680x1050 | |
| viewport=1280x720 | |
| [gource] | |
| camera-mode=overview | |
| colour-images=true | |
| file-idle-time=5 | |
| hide=filenames,dirnames,mouse,progress,date |
| $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser'][$_EXTKEY] = 'Tesseract\Templatedisplay\Service\SoftReferenceParser'; |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}"/> | |
| {{ metatags }} | |
| {%- block htmltitle %} |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.