Changeset 10550
- Timestamp:
- 07/31/08 19:06:05 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfGenerateControllerTaskPlugin/trunk/README
r10232 r10550 1 = sfGenerateControllerTaskPlugin = 2 3 Easily generate controllers for your symfony apps. 4 5 == Installation == 6 7 {{{ 8 $ ./symfony plugin-install http://plugins.symfony-project.com/sfGenerateControllerTaskPlugin 9 }}} 10 11 == Usage == 1 Usage 2 ----- 12 3 13 4 The `generate:controller` task creates a front controller in your project's `web/` directory: 14 5 15 {{{ 16 $ ./symfony generate:controller frontend dev 17 }}} 6 ./symfony generate:controller frontend dev 18 7 19 8 Traffic to this controller can be restricted by IP address by using the `--allowed-ip` option: 20 9 21 {{{ 22 $ ./symfony generate:controller frontend dev --allowed-ip="127.0.0.1" 23 }}} 10 ./symfony generate:controller frontend dev --allowed-ip="127.0.0.1" 24 11 25 12 This common use case can also be accomplished using the `localhost` shortcut (which also adds the IPv6 equivalent): 26 13 27 {{{ 28 $ ./symfony generate:controller frontend dev --allowed-ip="localhost" 29 }}} 14 ./symfony generate:controller frontend dev --allowed-ip="localhost" 30 15 31 16 If you want to use a filename other than the symfony default filename, use the `--filename` option: 32 17 33 {{{ 34 $ ./symfony generate:controller frontend dev --filename="index" 35 }}} 18 ./symfony generate:controller frontend dev --filename="index" 36 19 37 20 The controller can be configured to listen to the server for configuration variables using the `check-server` option: 38 21 39 {{{ 40 $ ./symfony generate:controller frontend prod --check-server 41 }}} 22 ./symfony generate:controller frontend prod --check-server 42 23 43 24 This option will add logic to your controller to first look for `SF_APPLICATION`, `SF_ENVIRONMENT` and `SF_DEBUG` keys in the `$_SERVER` array. If these keys are not found, the command arguments are used as fallback values. … … 45 26 Using the `check-server` option you can create an `index.php` controller that can dispatch any application, depending on what `SetEnv` directives exist in the requested `VirtualHost` configuration. This feature is Apache-specific. 46 27 47 {{{ 48 $ ./symfony generate:controller frontend prod --filename="index" --check-server --force 49 }}} 28 ./symfony generate:controller frontend prod --filename="index" --check-server --force 50 29 51 == Changelog == 30 Changelog 31 --------- 52 32 53 === 1.1.0-DEV === 33 ### 1.1.0 54 34 55 35 * Added option to check server for configuration values 56 * Added exception if file already exists and `force` option to overwrite 36 * Added exception if file already exists and `--force` option to overwrite 37 * Migrated `README` to Markdown for new plugins system 57 38 58 === 1.0.0 === 39 ### 1.0.0 59 40 60 41 * Initial public release 61 62 == Maintainers ==63 64 * Kris Wallsmithplugins/sfGenerateControllerTaskPlugin/trunk/package.xml
r10195 r10550 11 11 <active>yes</active> 12 12 </lead> 13 <date>2008-07- 09</date>13 <date>2008-07-31</date> 14 14 <version> 15 <release>1. 0.0</release>16 <api>1. 0.0</api>15 <release>1.1.0</release> 16 <api>1.1.0</api> 17 17 </version> 18 18 <stability>