PHP code example of pirasterize / sonata-form-builder
1. Go to this page and download the library: Download pirasterize/sonata-form-builder 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/ */
pirasterize / sonata-form-builder example snippets
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Gregwar\CaptchaBundle\GregwarCaptchaBundle(),
new Pirastru\FormBuilderBundle\PirastruFormBuilderBundle()
);
// ...
}
// ...
}
sh
php -dmemory_limit=1G ./composer.phar
yml
sonata_form_builder:
resource: '@PirastruFormBuilderBundle/Controller/FormBuilderController.php'
type: annotation