PHP code example of fos1 / sf-form-i18n-number-plugin
1. Go to this page and download the library: Download fos1/sf-form-i18n-number-plugin 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/ */
fos1 / sf-form-i18n-number-plugin example snippets
public function configure() {
// widgets
$this->setWidgets(array(
'number' => new sfWidgetFormInput(),
));
// validators
$this->setValidators(array(
'number' => new sfValidatorNumber(),
));
}
public function configure() {
// widgets
$this->setWidgets(array(
'number' => new sfWidgetFormI18nNumber(),
));
// validators
$this->setValidators(array(
'number' => new sfValidatorI18nNumber(),
));
}
// widgets
$this->setWidgets(array(
'number' => new sfWidgetFormI18nNumber(array('culture' => 'fr')),
));
// validators
$this->setValidators(array(
'number' => new sfValidatorI18nNumber(array('culture' => 'fr')),
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.