1. Go to this page and download the library: Download lifo/typeahead-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/ */
lifo / typeahead-bundle example snippets
$bundles = array(
// ...
new Lifo\TypeaheadBundle\LifoTypeaheadBundle(),
);
$builder->add('user', 'entity_typeahead', array(
'class' => 'MyBundle:User',
'render' => 'fullname',
'source' => 'get_users', // a function name in the global javascript "window" object
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.