Changeset 3607
- Timestamp:
- 03/13/07 20:06:39 (2 years ago)
- Files:
-
- doc/branches/1.0/book/06-Inside-the-Controller-Layer.txt (modified) (1 diff)
- doc/branches/1.0/book/08-Inside-the-Model-Layer.txt (modified) (2 diffs)
- doc/branches/1.0/book/11-Ajax-Integration.txt (modified) (1 diff)
- doc/branches/1.0/book/15-Unit-and-Functional-Testing.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.0/book/06-Inside-the-Controller-Layer.txt
r3567 r3607 1052 1052 enabled: true 1053 1053 is_internal: false 1054 view_name: sfP hpView1054 view_name: sfPHP 1055 1055 1056 1056 The enabled parameter allows you to disable all actions of a module. All actions are redirected to the `module_disabled_module`/`module_disabled_action` action (as defined in `settings.yml`). doc/branches/1.0/book/08-Inside-the-Model-Layer.txt
r3567 r3607 235 235 $comment = new Comment(); 236 236 $comment->setAuthor('Steve'); 237 $comment->setContent('Gee, dude, you rock: best article ever! );237 $comment->setContent('Gee, dude, you rock: best article ever!'); 238 238 239 239 // Attach this comment to the previous $article object … … 504 504 password: passwd 505 505 port: 80 506 encoding: utf -8# Default charset for table creation506 encoding: utf8 # Default charset for table creation 507 507 persistent: true # Use persistent connections 508 508 doc/branches/1.0/book/11-Ajax-Integration.txt
r3567 r3607 225 225 > 226 226 > [php] 227 > $isAjax = $this-> isXmlHttpRequest();227 > $isAjax = $this->getRequest()->isXmlHttpRequest(); 228 228 > 229 229 >Symfony knows that an action is in an Ajax context and can adapt the response processing accordingly. Therefore, by default, Ajax actions don't include the web debug toolbar in the development environment. Also, they skip the decoration process (their template is not included in a layout by default). If you want an Ajax view to be decorated, you need to specify explicitly `has_layout: true` for this view in the module `view.yml` file. doc/branches/1.0/book/15-Unit-and-Functional-Testing.txt
r3567 r3607 684 684 $b->initialize(); 685 685 $b->get('/foobar/edit/id/1')-> 686 checkResponseElement('form input[type="hidden"][value="1"]', true ->686 checkResponseElement('form input[type="hidden"][value="1"]', true)-> 687 687 checkResponseElement('form textarea[name="text1"]', 'foo')-> 688 688 checkResponseElement('form input[type="submit"]', 1);