PHP code example of nercury / translation-editor-bundle
1. Go to this page and download the library: Download nercury/translation-editor-bundle 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/ */
nercury / translation-editor-bundle example snippets
class TestType extends \Symfony\Component\Form\AbstractType
{
public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options)
{
$builder->add('name');
$builder->add('description');
}
public function getName()
{
return 'translation_item_form';
}
}