PHP code example of adt / nette-forms-currency
1. Go to this page and download the library: Download adt/nette-forms-currency 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/ */
adt / nette-forms-currency example snippets
\ADT\Forms\Controls\CurrencyInput::register();
$form->addCurrency('currency', 'label', \ADT\Forms\Controls\CurrencyInput::CURRENCY_CZK);
$form->onSuccess[] = function ($form) {
$form['currency']->getValue(); // returns eg. from "100 000 000,56 kč" => "100000000.56"
};