title: Cakephp Import Controller
body: <p>I am new in cakephp and I want to import controller in my controller so i use the below syntax. This is my controller in which I import user controller:</p>
  
  <p><strong>users_controller.php</strong></p>
  
  <pre><code> function api_work(){ $data = $this-&gt;User-&gt;find('all'); $this-&gt;set('data' , $data); }
  </code></pre>
  
  <p><strong>plays_controller.php</strong></p>
  
  <pre><code>    function api_show()
          {
              $this-&gt;layout= false;
              App::import('Controller', 'Users');
              $Users = new UsersController;
              $Users-&gt;constructClasses();
              $data = $Users-&gt;api_work();
              pr($data); //it not display anything and shows error like undefined varia
  ble
          }
  </code></pre>
  
  <p>Controller is successfully imported.
  Question is how can I data return from api_work() function? </p>