Download the PHP package ikkez/f3-template-directives without Composer
On this page you can find all versions of the php package ikkez/f3-template-directives. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package f3-template-directives
Template directives
Collection of different template directives for the PHP Fat-Free Framework.
This package gives you a base to write your own template tag handler (directive) easily. Therefore extend the \Template\TagHandler class and implement its build method.
You can also have a look at the included, ready-to-use directives:
form
A collection of additional form-related HTML tag handlers for server side data handling to form / input / select / textarea elements.
Init:
This automatically registers the following directives: input, select, option, textarea, form.
Any data you set to the global POST variable is filled into the registered form elements accordingly. If you want to use a different hive key, you can do it like this:
You can also fill the form fields dynamically based on the form name attribute:
The field target is then set to FORM.contact:
For more tests, see: http://f3.ikkez.de/formtest
markdown
Convert inline markdown text or render a file.
or
Init:
image
Render image thumbnails automatically.
Init:
Options:
temp_dir, public accessable path for generated, temporary thumbnail imagesfile_type, default file type for dumped images,png,jpeg,giforwbmpdefault_quality, image quality, 0-100not_found_fallback, fallback path for missing imagesnot_found_callback, define a callable function here that is executed when the image path was not found. The function receives the$filePathas first parameter.
Usage:
Additional attributes:
width, target image widthheight, maximum image heightcrop, allow image to be cropped into width/height ratioenlarge, size up image when source image is smaller than target sizequality, overwrite default quality
Licence
GPLv3