Changeset 3673
- Timestamp:
- 03/27/07 09:41:04 (2 years ago)
- Files:
-
- doc/branches/1.0/book/05-Configuring-Symfony.txt (modified) (1 diff)
- doc/branches/1.0/book/06-Inside-the-Controller-Layer.txt (modified) (4 diffs)
- doc/branches/1.0/book/10-Forms.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.0/book/05-Configuring-Symfony.txt
r3567 r3673 510 510 echo sfConfig::get('app_tax'); // Remember that category headers are ignored 511 511 => '19.6' 512 echo sfConfig::get('app_default_user_name );512 echo sfConfig::get('app_default_user_name'); 513 513 => 'John Doe' 514 514 echo sfConfig::get('app_mail_webmaster'); doc/branches/1.0/book/06-Inside-the-Controller-Layer.txt
r3607 r3673 454 454 `getLanguages()` | Array of accepted languages | `Array( ` ` [0] => fr ` ` [1] => fr_FR ` ` [2] => en_US ` ` [3] => en )` 455 455 `getCharsets()` | Array of accepted charsets | `Array( ` ` [0] => ISO-8859-1 ` ` [1] => UTF-8 ` ` [2] => * )` 456 getAcceptableContentType ()| Array of accepted content types | `Array( [0] => text/xml [1] => text/html`456 getAcceptableContentTypes() | Array of accepted content types | `Array( [0] => text/xml [1] => text/html` 457 457 458 458 * *Works only with prototype* … … 471 471 $hasFoo = $this->getRequest()->hasParameter('foo'); 472 472 $hasFoo = $this->hasRequestParameter('foo'); // Shorter version 473 $foo = $this->getRequest()->getParameter('foo');474 $foo = $this->getRequestParameter('foo'); // Shorter version473 $foo = $this->getRequest()->getParameter('foo'); 474 $foo = $this->getRequestParameter('foo'); // Shorter version 475 475 } 476 476 } … … 941 941 942 942 [php] 943 return $this->getCont roller()->forward('mymodule', 'myAction');943 return $this->getContext()->getController()->forward('mymodule', 'myAction'); 944 944 945 945 >**NOTE** … … 1026 1026 $context = $this->getContext(); 1027 1027 $request = $context->getRequest(); 1028 1028 1029 if (!$request->isSecure()) 1029 1030 { 1030 1031 $secure_url = str_replace('http', 'https', $request->getUri()); 1032 1031 1033 return $context->getController()->redirect($secure_url); 1032 1034 // We don't continue the filter chain doc/branches/1.0/book/10-Forms.txt
r3420 r3673 409 409 AuthorPeer::doSelect(new Criteria()), 410 410 'getId', 411 '__toString ()',411 '__toString', 412 412 $article->getAuthorId() 413 413 )) ?>