title: Use of requestAction in the ctp file and it turned out a blank page instead
body: <p>I am using cakePHP 1.26.<br/>
  The web page turned out blank when I tried to use requestAction to access a function in a COntroller from a .ctp. <br/>
  Here is the code:<br/></p>
  
  <pre><code>&lt;?php
  class TestingController extends AppController {
  
   function hello($id=null){
  
             $IfLoggedIn=$this-&gt;Session-&gt;check('user');
  
             if($IfLoggedIn){
              //search the database
              //$result=doing something from the search results
              $this-&gt;set('userInfo',$result);
              return "2";
             }
  
             else if(!$IfLoggedIn &amp;&amp; $id!=null){
             return "1";
              }
  
             else if($id==null){
             return "0";
              }
      }
  }
  </code></pre>
  
  <p>and then in default.ctp file, I made use of the function defined above:<br/></p>
  
  <pre><code>&lt;?php
      $u = $this-&gt;requestAction('/hello'); 
      if($u=="2"){
      echo "welcome back, my friend";
      }
      else{
      echo "Hello World";
      }
  ?&gt;
  </code></pre>
  
  <p>But when I load a web page, it was blank page.</p>
  
  <p>I have no idea what's wrong in the code.</p>