Changeset 10381 for doc/branches/1.1/tutorial/my-first-project.txt
- Timestamp:
- 07/21/08 09:39:55 (4 months ago)
- Files:
-
- doc/branches/1.1/tutorial/my-first-project.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/tutorial/my-first-project.txt
r10189 r10381 153 153 interface automatically: 154 154 155 $ php symfony propel:generate-crud frontend post Post 156 $ php symfony propel:generate-crud frontend comment Comment 155 $ php symfony propel:generate-crud frontend post Post --with-show 156 $ php symfony propel:generate-crud frontend comment Comment --with-show 157 157 $ php symfony cache:clear 158 158 … … 234 234 http_metas: 235 235 content-type: text/html 236 237 metas:238 title: The best blog ever239 robots: index, follow240 description: symfony project241 keywords: symfony, project242 language: en236 237 metas: 238 title: The best blog ever 239 robots: index, follow 240 description: symfony project 241 keywords: symfony, project 242 language: en 243 243 244 244 The home page itself needs to be changed. It uses the default template of the … … 570 570 list_of_posts: 571 571 url: /latest_posts 572 param: { module: post, action: list}572 param: { module: post, action: index } 573 573 574 574 post: … … 627 627 <div id="navigation"> 628 628 <ul style="list-style:none;"> 629 <li><?php echo link_to('Manage posts', 'post/ list') ?></li>630 <li><?php echo link_to('Manage comments', 'comment/ list') ?></li>629 <li><?php echo link_to('Manage posts', 'post/index') ?></li> 630 <li><?php echo link_to('Manage comments', 'comment/index') ?></li> 631 631 </ul> 632 632 </div> … … 678 678 add to the `sf_sandbox/lib/model/Post.php`: 679 679 680 [php] 680 [php] 681 function __toString() 682 { 683 return $this->getTitle(); 684 } 685 681 686 public function getNbComments() 682 687 {