| | 66 | }}} |
|---|
| | 67 | Edit your app.yml to register the routes: |
|---|
| | 68 | {{{ |
|---|
| | 69 | sfTextReplacementPlugin: |
|---|
| | 70 | routes_register: true |
|---|
| | 71 | }}} |
|---|
| | 72 | optionally, you can define your own routes: |
|---|
| | 73 | {{{ |
|---|
| | 74 | sfTextReplacementImageSelector: |
|---|
| | 75 | url: /textReplacement/:selector/:text.png |
|---|
| | 76 | params: {module: sfTextReplacement, action: index} |
|---|
| | 77 | |
|---|
| | 78 | sfTextReplacementImage: |
|---|
| | 79 | url: /textReplacement/:text.png |
|---|
| | 80 | params: {module: sfTextReplacement, action: index} |
|---|
| | 81 | |
|---|
| | 82 | #Base Route - is needed to provide the base URL to the JavaScript. Whenever you change the routes above, change this one as well |
|---|
| | 83 | sfTextReplacementImageSelector: |
|---|
| | 84 | url: /textReplacement/ |
|---|
| | 85 | params: {module: sfTextReplacement, action: index} |
|---|