Changeset 16438
- Timestamp:
- 03/19/09 15:48:33 (4 years ago)
- Files:
-
- plugins/sfTitleMakerPlugin/trunk/README (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfTitleMakerPlugin/trunk/README
r16437 r16438 11 11 Usage 12 12 ----- 13 14 Update the execution filter class in `myapp/config/filters.yml`: 15 16 execution: 17 class: sfTitleMakerExecutionFilter 18 19 Clear your cache: 20 21 ./symfony cc 22 23 Add some titles as in the examples 24 13 25 ### Example 1 14 26 15 'My Website » News » Hungry man eats horse'27 My Website » News » Hungry man eats horse 16 28 17 29 In apps/myapp/config/app.yml: … … 30 42 $newsItem = NewsPeer::retrieveByPk(1); 31 43 44 sfTitleMaker::getInstance()->add('News'); 32 45 sfTitleMaker::getInstance()->add($newsItem->getHeadline()); 33 46 } … … 36 49 37 50 ### Example 2 51 52 Royal Blue Egg Cup | Ceramics | Products | My Online Store 38 53 39 54 In apps/myapp/config/app.yml: … … 49 64 class newsActions extends sfActions 50 65 { 66 public function preExecute() 67 { 68 sfTitleMaker::getInstance()->add('Products'); 69 } 70 51 71 public function executeShow() 52 72 { … … 57 77 } 58 78 } 59 60 61