Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo101 committed Mar 26, 2013
1 parent 83ea251 commit 4e8dd1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ is included that adds several new features and enhancements.

This example shows a form field that allows a single name to be entered.

![Typeahead (single) Example](https://raw.github.com/lifo101/symfony-typeahead-bundle/master/Resources/doc/img/typeahead-single.png)
![Typeahead (single) Example](Resources/doc/img/typeahead-single.png)

This example shows a form field that allows multiple names to be entered. Clicking on a name link removes the entity.
The entity in the backend is actually an ArrayCollection and automatically allows adding/removing entities from the list.

![Typeahead (multiple) Example](https://raw.github.com/lifo101/symfony-typeahead-bundle/master/Resources/doc/img/typeahead-multiple.png)
![Typeahead (multiple) Example](Resources/doc/img/typeahead-multiple.png)

##How to install##

Expand All @@ -45,7 +45,7 @@ which can help with this for you.
}
```

* Run `composer update lifo/symfony-typeahead-bundle` in your project root.
* Run `php composer.phar update lifo/symfony-typeahead-bundle` in your project root.
* Update your project `app/AppKernel.php` file and add this bundle to the $bundles array:

```php
Expand All @@ -55,7 +55,7 @@ $bundles = array(
);
```

* Update your project `app/config.yml` file to provide twig templates:
* Update your project `app/config.yml` file to provide global twig form templates:

```yaml
twig:
Expand All @@ -66,7 +66,7 @@ twig:
```

* Update your site twig template to initialize the typeahead javascript. There are two options here.
* In your template add the following twig function call:
* In your template add the following twig function call anywhere:

```
{{ lifo_typeahead_init() }}
Expand All @@ -87,12 +87,12 @@ twig:
{% endblock %}
```
* **(Optional)** Add `LifoTypeaheadBundle` to your `app/config/config.yml`. *This is only required if you want to include the typeahead javascript as part of your main site JS using assetic.*
* **(Optional)** Add `LifoTypeaheadBundle` to your `app/config/config.yml`. *This is only required if you want to include the typeahead javascript as part of your main site JS using assetic.*
```yaml
assetic:
bundles: [ 'LifoTypeaheadBundle' ]
```
```yaml
assetic:
bundles: [ 'LifoTypeaheadBundle' ]
```
##How to use##
Expand Down

0 comments on commit 4e8dd1e

Please sign in to comment.