PHP code example of geniv / nette-form
1. Go to this page and download the library: Download geniv/nette-form library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
geniv / nette-form example snippets
$form->addDate($name, $label = null);
$form->addTime($name, $label = null);
$form->addDateTime($name, $label = null);
$form->addWeek($name, $label = null);
$form->addMonth($name, $label = null);
$form->addSearch($name, $label = null);
$form->addNumber($name, $label = null);
$form->addRange($name, $label = null)
->setStep($step)
->setMin($min)
->setMax($max)
->setValue($value);
$form->addColor($name, $label = null);
// use Thumbnail class
$form->addImg($name, $label = null)
->setPath(string $path, string $baseUrl = null)
->setImageSize(string $width = null, string $height = null, array $flags = [], int $quality = null)
->setValue($value);
// use Thumbnail class
$form->addUploadImage($name, $label = null, $multiple = false)
->setPath(string $path, string $baseUrl = null)
->setImageSize(string $width = null, string $height = null, array $flags = [], int $quality = null)
->setValue($value);
$form->addUploadFile($name, $label = null, $multiple = false)
->setPath(string $relativePath, string $absolutePath)
->setTarget(string $target)
->setValue($value);
$form->addHref($name, $label = null)
->setPrefix(string $prefix)
->setText(string $text)
->setHref(string $href)
->setTarget(string $target)
->setConfirm(string $text);
$form->addHrefLabel($name, $label = null)
->setText(string $text)
->setHref(string $href)
->setTarget(string $target)
->setConfirm(string $text);
$form->addLabel($name, $label = null, $element = 'div')
->setText(string $text);
$form->setGroup($name, $label = null, $element = 'div')
->begin(string $id)
->end();
json
"php": ">=7.0",
"nette/application": ">=2.4",
"nette/di": ">=2.4",
"nette/forms": ">=2.4",
"nette/utils": ">=2.4",
"nette/php-generator": ">=2.4",
"geniv/nette-thumbnail": ">=1.0"