|
Revision 33166, 1.0 kB
(checked in by rodchyn, 2 years ago)
|
LICENSE and README
|
| Line | |
|---|
| 1 |
# lapeGravatarPlugin (for symfony 1.3/1.4) # |
|---|
| 2 |
|
|---|
| 3 |
The `lapeGravatarPlugin` is a symfony plugin that provides easy gravatar |
|---|
| 4 |
integration and configuration for your project application. |
|---|
| 5 |
|
|---|
| 6 |
It consists of helper and the behavior for Doctrine models. |
|---|
| 7 |
|
|---|
| 8 |
## Installation ## |
|---|
| 9 |
|
|---|
| 10 |
* Install the plugin |
|---|
| 11 |
|
|---|
| 12 |
symfony plugin:install lapeGravatarPlugin |
|---|
| 13 |
|
|---|
| 14 |
* Activate the plugin in the `config/ProjectConfiguration.class.php` |
|---|
| 15 |
|
|---|
| 16 |
[php] |
|---|
| 17 |
class ProjectConfiguration extends sfProjectConfiguration |
|---|
| 18 |
{ |
|---|
| 19 |
public function setup() |
|---|
| 20 |
{ |
|---|
| 21 |
$this->enablePlugins(array( |
|---|
| 22 |
'...', |
|---|
| 23 |
'lapeGravatarPlugin', |
|---|
| 24 |
'...' |
|---|
| 25 |
)); |
|---|
| 26 |
} |
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
* Clear you cache |
|---|
| 30 |
|
|---|
| 31 |
symfony cc |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
### Behaviors configuration ### |
|---|
| 35 |
|
|---|
| 36 |
The plugin include behavior for Doctrine models. |
|---|
| 37 |
|
|---|
| 38 |
* Add `actAs: [...,Gravatarable,...]` to your model, it has only one param `email_field` |
|---|
| 39 |
|
|---|
| 40 |
actAs: |
|---|
| 41 |
Gravatar: |
|---|
| 42 |
email_field: email_address |
|---|