Changeset 19866
- Timestamp:
- 07/03/09 21:13:43 (7 months ago)
- Files:
-
- doc/branches/1.1/cookbook/en/cli.txt (modified) (2 diffs)
- doc/branches/1.1/cookbook/en/pager.txt (modified) (1 diff)
- doc/branches/1.1/cookbook/en/shopping_cart.txt (modified) (3 diffs)
- doc/branches/1.1/cookbook/en/sortable.txt (modified) (3 diffs)
- doc/branches/1.1/cookbook/en/syndication.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/cookbook/en/cli.txt
r10189 r19866 21 21 >**Note**: The symfony CLI works only from the root of a symfony project 22 22 23 The [symfony sandbox](http://www.symfony-project.org/book/1_1/03-Running-Symfony# Installing%20the%20Sandbox) contains executables for Windows and *nix platforms that should allow an even faster call:23 The [symfony sandbox](http://www.symfony-project.org/book/1_1/03-Running-Symfony#chapter_03_installing_the_sandbox) contains executables for Windows and *nix platforms that should allow an even faster call: 24 24 25 25 $ ./symfony <TASK> [parameters] # *nix … … 147 147 $ php symfony project:deploy <SERVER_CONFIGURATION_NAME> [--go] 148 148 149 Synchronises the current project with another machine (find more in [Chapter 16](http://www.symfony-project.org/book/1_1/16-Application-Management-Tools# Deploying%20Applications)).149 Synchronises the current project with another machine (find more in [Chapter 16](http://www.symfony-project.org/book/1_1/16-Application-Management-Tools#chapter_16_deploying_applications)). 150 150 151 151 ### Tests doc/branches/1.1/cookbook/en/pager.txt
r19500 r19866 280 280 These parameters are never used directly by the pager. 281 281 282 To learn more about custom parameters, refer to the [Chapter 2](http://www.symfony-project.org/book/1_1/02-Exploring-Symfony-s-Code# Parameter%20Holders).282 To learn more about custom parameters, refer to the [Chapter 2](http://www.symfony-project.org/book/1_1/02-Exploring-Symfony-s-Code#chapter_02_sub_parameter_holders). doc/branches/1.1/cookbook/en/shopping_cart.txt
r9725 r19866 10 10 ------------ 11 11 12 The shopping cart classes are are not shipped with the default symfony installation, but packaged into a plugin called `sfShoppingCart`. Symfony plugins are installed via PEAR (find more about plugins in [Chapter 17](http://www.symfony-project.org/book/1_1/17-Extending-Symfony# Plug-Ins)).12 The shopping cart classes are are not shipped with the default symfony installation, but packaged into a plugin called `sfShoppingCart`. Symfony plugins are installed via PEAR (find more about plugins in [Chapter 17](http://www.symfony-project.org/book/1_1/17-Extending-Symfony#chapter_17_plug_ins)). 13 13 14 14 The installation of the `sfShoppingCart` plugin is very straightforward, as described in the [plugin page](`sfShoppingCart`). You just need to type in the command line: … … 59 59 The `$user->getShoppingCart()` method will create a new shopping cart if the user doesn't already have one. 60 60 61 >**Note**: if you need more information about the way to override the default `sfUser` class by a custom `myUser` class, you should read the section about **factories** in [Chapter 17](http://www.symfony-project.org/book/1_1/17-Extending-Symfony# Factories).61 >**Note**: if you need more information about the way to override the default `sfUser` class by a custom `myUser` class, you should read the section about **factories** in [Chapter 17](http://www.symfony-project.org/book/1_1/17-Extending-Symfony#chapter_17_factories). 62 62 63 63 Add, modify and remove Items … … 207 207 * `->getTotal()`: Total amount of the shopping cart (sum of the quantity*price for each item) 208 208 209 Shopping cart items also have a [parameter holder](http://www.symfony-project.org/book/1_1/02-Exploring-Symfony-s-Code# Parameter%20Holders). This means that you can add custom information to any item.209 Shopping cart items also have a [parameter holder](http://www.symfony-project.org/book/1_1/02-Exploring-Symfony-s-Code#chapter_02_sub_parameter_holders). This means that you can add custom information to any item. 210 210 211 211 For instance, in a website that sells auto parts, the `sfShoppingCartItem` objects need to store the objects added, but also the vehicle for which the part was bought. This can be simply done by adding: doc/branches/1.1/cookbook/en/sortable.txt
r9725 r19866 14 14 ### Data structure 15 15 16 For this article, the example used will be an undefined `Item` table - name it according to your needs. In order to be sortable, records need at least a `rank` field - no need for a [heap](http://en.wikipedia.org/wiki/Heap_%28data_structure%29) here since the sorting will be done by the user, not by the computer. So the data structure (to be written in the [`schema.yml`](http://www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer# Symfony's%20Database%20Schema)) is simply:16 For this article, the example used will be an undefined `Item` table - name it according to your needs. In order to be sortable, records need at least a `rank` field - no need for a [heap](http://en.wikipedia.org/wiki/Heap_%28data_structure%29) here since the sorting will be done by the user, not by the computer. So the data structure (to be written in the [`schema.yml`](http://www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer#chapter_08_symfony_s_database_schema)) is simply: 17 17 18 18 propel: … … 128 128 http://localhost/sf_sandbox/web/frontend_dev.php/item 129 129 130 Finally, if you want to test the ordering of items, you will need... items. Create a bunch of test items, either via a [CRUD interface](http://www.symfony-project.org/book/1_1/14-Generators# Scaffolding) or a [population file](http://www.symfony-project.org/book/1_1/16-Application-Management-Tools#Populating%20a%20Database).130 Finally, if you want to test the ordering of items, you will need... items. Create a bunch of test items, either via a [CRUD interface](http://www.symfony-project.org/book/1_1/14-Generators#chapter_14_code_generation_based_on_the_model) or a [population file](http://www.symfony-project.org/book/1_1/16-Application-Management-Tools#chapter_16_populating_a_database). 131 131 132 132 Now that everything is ready, let's get started. … … 323 323 ### Focus on the `sortable_element()` options 324 324 325 The [Javascript helpers chapter](http://www.symfony-project.org/book/1_1/11-Ajax-Integration# Remote%20Call%20Parameters) describes the generic options of remote function calls, but this example is a good opportunity to see the ones of the `sortable_element()` in detail.325 The [Javascript helpers chapter](http://www.symfony-project.org/book/1_1/11-Ajax-Integration#chapter_11_remote_call_parameters) describes the generic options of remote function calls, but this example is a good opportunity to see the ones of the `sortable_element()` in detail. 326 326 327 327 You can define a **different appearance for hovered list elements** when dragging another element over them with the `hoverclass` parameter: doc/branches/1.1/cookbook/en/syndication.txt
r10189 r19866 47 47 } 48 48 49 If you need more details about the way to extend the model, refer to [Chapter 8](http://www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer# Extending%20the%20Model).49 If you need more details about the way to extend the model, refer to [Chapter 8](http://www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer#chapter_08_extending_the_model). 50 50 51 51 The `routing.yml` contains the following rule: … … 116 116 $ symfony cc 117 117 118 If you want to learn more about plug-ins, how they extend the framework and how you can package the features that you use across several projects into a plug-in, refer to [Chapter 17](http://www.symfony-project.org/book/1_1/17-Extending-Symfony# Plug-Ins) of the symfony book.118 If you want to learn more about plug-ins, how they extend the framework and how you can package the features that you use across several projects into a plug-in, refer to [Chapter 17](http://www.symfony-project.org/book/1_1/17-Extending-Symfony#chapter_17_plug_ins) of the symfony book. 119 119 120 120 Build the feed by hand

