Changeset 6742
- Timestamp:
- 12/27/07 09:14:40 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/book/04-The-Basics-of-Page-Creation.txt
r4908 r6742 190 190 <?php if ($hour >= 18): ?> 191 191 <p>Or should I say good evening? It's already <?php echo $hour ?>.</p> 192 <?php endif; ?> 193 <form method="post" target="/myapp_dev.php/mymodule/anotherAction">192 <?php endif; ?> 193 <form method="post" action="/myapp_dev.php/mymodule/anotherAction"> 194 194 <label for="name">What is your name?</label> 195 195 <input type="text" name="name" id="name" value="" /> doc/branches/1.1/book/09-Links-and-the-Routing-System.txt
r6613 r6742 275 275 <?php echo link_to('delete item', 'item/delete?id=123', 'confirm=Are you sure?') ?> 276 276 => <a onclick="return confirm('Are you sure?');" 277 href="/routed/url/to/delete/123.html"> add to cart</a>277 href="/routed/url/to/delete/123.html">delete item</a> 278 278 279 279 <?php echo link_to('add to cart', 'shoppingCart/add?id=100', 'popup=true') ?> … … 581 581 http://myapp.example.com/article/Finance_in_France.html 582 582 583 Even if it is the same page, users and (robots) may see it differently because of the URL. The second URL evokes a deep and well-organized web directory of static pages, which is exactly the kind of websites that search engines know how to index.583 Even if it is the same page, users (and robots) may see it differently because of the URL. The second URL evokes a deep and well-organized web directory of static pages, which is exactly the kind of websites that search engines know how to index. 584 584 585 585 To add a suffix to every external URL generated by the routing system, change the `suffix` value in the application `settings.yml`, as shown in Listing 9-22.