Created
December 27, 2013 13:41
-
-
Save denniserdmann/8147012 to your computer and use it in GitHub Desktop.
Snippet to generate Contao Thumbnail Images
This file contains 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 | |
$strReturn = $this->generateImage($this->getImage('tl_files/images/foobar.jpg', 300, 250, 'proportional'), 'my first image'); | |
// nun den Wert an ein Template übergeben. | |
$this->Template->myFirstImage = $strReturn; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good, thanks man!