From 28ca09b6c387b0e370d148096017d2e0a6e153fa Mon Sep 17 00:00:00 2001
From: Jose Diaz-Gonzalez <josegonzalez@users.noreply.github.com>
Date: Sat, 5 Oct 2013 16:05:44 -0400
Subject: [PATCH] Update codeblocks to include missing 'RequestHandler'
 component inclusion

---
 en/views/json-and-xml-views.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/en/views/json-and-xml-views.rst b/en/views/json-and-xml-views.rst
index d52b6498d5..4fdc9a0a03 100644
--- a/en/views/json-and-xml-views.rst
+++ b/en/views/json-and-xml-views.rst
@@ -47,6 +47,8 @@ generating the response, you should use view files.  The value of ``_serialize``
 can be either a string or an array of view variables to serialize::
 
     class PostsController extends AppController {
+        public $components = array('RequestHandler');
+        
         public function index() {
             $this->set('posts', $this->paginate());
             $this->set('_serialize', array('posts'));
@@ -56,6 +58,8 @@ can be either a string or an array of view variables to serialize::
 You can also define ``_serialize`` as an array of view variables to combine::
 
     class PostsController extends AppController {
+        public $components = array('RequestHandler');
+        
         public function index() {
             // some code that created $posts and $comments
             $this->set(compact('posts', 'comments'));