Skip to content

Commit

Permalink
Changes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin-harangus committed May 25, 2012
2 parents f61d123 + bc6c963 commit aa28a66
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.md
Expand Up @@ -10,19 +10,16 @@ triggering events on an object with different parameters.
Installation / Usage
--------------------

1. ZeTwig can be installed using Composer by simply adding the following lines to your composer.json file:
ZeTwig can be installed using Composer by simply adding the following lines to your composer.json file:

``` json
"require": {
"ZendExperts/ZeTwig": "1.0.*"
}
```

2. Then run `php composer.phar update`.

Then run `php composer.phar update`.

3. The module also defines a set of options that you can change from within the configuration files:
The module also defines a set of options that you can change from within the configuration files:

``` php
'zendexperts_zetwig' => array(
//you can change the extension of the loaded templates here
'template_suffix' => 'twig',
Expand All @@ -36,8 +33,7 @@ Installation / Usage
'debug' => true
),
),
```


Documentation
-------------

Expand All @@ -57,7 +53,7 @@ Apart from the functionality listed above the module adds two extension tags:
1. A tag for rendering a controller action, which follows the Symfony naming conventions
or the controller alias:

```html
```
{% render "Core:Index:index" %}
```

Expand All @@ -68,13 +64,13 @@ Apart from the functionality listed above the module adds two extension tags:
Optionally you can also specify different parameters to send to the processed action which can
later be retrieved from the matched route:

```html
```
{% render "Core:Index:index" with {'param1':1} %}
```

2. A tag for triggering an event on the renderer that is similar to the above syntax:

```html
```
{% trigger "myRendererEvent" on myObject with {'param1':1} %}
```

Expand Down

0 comments on commit aa28a66

Please sign in to comment.