title: CakePHP controller action from another controller
body: <p>I have the following controller:</p>
  
  <pre><code>App::import('Controller', 'Users');
  class EmployeesController extends  AppController
  {
  
  }
  </code></pre>
  
  <p>Now <a href="https://stackoverflow.com/questions/1507552/cakephp-best-way-to-call-an-action-of-another-controller-with-array-as-paramete">another StackOverflow question</a> said to do the following:</p>
  
  <pre><code>&lt;?php
  //Import controller
  App::import('Controller', 'Posts');
  
  class CommentsController extends AppController {
      //Instantiation
      $Posts = new PostsController;
      //Load model, components...
      $Posts-&gt;constructClasses();
  
      public function index($passArray = array(1,2,3)) {
          //Call a method from PostsController with parameter
          $Posts-&gt;doSomething($passArray);
      }
  }
  ?&gt;
  </code></pre>
  
  <p>However if I try to copy this to my code that my code looks like this:</p>
  
  <pre><code>App::import('Controller', 'Users');
  
  class EmployeesController extends  AppController {
  
      public $name = 'Employee';
      $Users = new UsersController;
  </code></pre>
  
  <p>I get a syntax error and if I run it anyway I get a fatal error.</p>
  
  <p>So my question is how do I call a function from another controller?</p>