title: How to import components in cakephp on the fly
body: <p>I am trying to import the component in a function using following syntax:</p>
  
  <p><code>App::import('Component', 'ImageUploader');</code></p>
  
  <p>However, it works if I define it in the class eg:</p>
  
  <pre><code>class AbcController extends AppController {
  public $name = 'Abc';
  public $components = array('ImageUploader');`
  }
  </code></pre>
  
  <p>How do I import it in a function? I am using CakePhp latest stable version.</p>