2.0.x-dev
2.0.9999999.9999999-devSymfony ShtumiUsefulBundle
MIT
The Requires
- php >=5.3.2
- symfony/framework-bundle 2.0.*
by Mikhail Shtukin
ajax autocomplete form type dependent filtered form type daterange shtumi
Symfony ShtumiUsefulBundle
ShtumiUsefulBundle provides some useful things that needed almost in every project. It's:, (*1)
Form types:, (*2)
Ajax Autocomplete form type (useful when you operate with thousands and hundred thousands records [for instance: users]), (*3)
Dependent filtered form type (useful when you need operate dependent entities in one form (for instance: countries/regions)), (*4)
Date range form type (allows you select date range with JS calendar and take valid DateRange object), (*5)
DQL extra functions:, (*6)
IF, (*7)
IFNULL, (*8)
ROUND, (*9)
DATE_DIFF, (*10)
You can use Ajax autocomplete form type as a filter type with SonataAdminBundle, (*11)
deps
file and then run php bin/vendors install
:[ShtumiUsefulBundle] git=https://github.com/shtumi/ShtumiUsefulBundle.git target=bundles/Shtumi/UsefulBundle
For Symfony 2.0 please use branch 2.0 of ShtumiUsefulBundle:, (*12)
[ShtumiUsefulBundle] git=https://github.com/shtumi/ShtumiUsefulBundle.git target=bundles/Shtumi/UsefulBundle version=origin/2.0
You also should install SonataAdminBundle and all dependencies for it., (*13)
// app/AppKernel.php public function registerBundles() { return array( // ... new Shtumi\UsefulBundle\ShtumiUsefulBundle(), // ... ); }
// app/autoload.php $loader->registerNamespaces(array( 'Shtumi' => __DIR__.'/../vendor/bundles', // your other namespaces ));
// app/config/routing.yml, (*14)
shtumi_useful: resource: '@ShtumiUsefulBundle/Resources/config/routing.xml'
twig: ... form: resources: - ShtumiUsefulBundle::fields.html.twig
Update your configuration in accordance with using ShtumiUsefulBundle things, (*15)
<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
Symfony ShtumiUsefulBundle
MIT
ajax autocomplete form type dependent filtered form type daterange shtumi