title: How to load plugin files in cakephp 2.0
body: <p>I am using linkedin plugin for my app. It was working fine for cakephp 1.3. I migrated to cakephp 2.x. I understand you need to load plugins like this </p>
  
  <pre><code>CakePlugin::load('Linkedin');
  </code></pre>
  
  <p>It worked. But in my plugin folder I have vendor folder. It is loaded using </p>
  
  <pre><code>App::import('Vendor', 'Linkedin.oauth', array('file' =&gt; 'OAuth' . DS . 'oauth_consumer.php'));
  </code></pre>
  
  <p>But it says cannot find oauth_consumer.</p>
  
  <p>I appreciate any help.</p>
  
  <p>*<strong>UPDATED *</strong>
  I have added linkedin <a href="https://github.com/inlet/CakePHP-LinkedIn" rel="nofollow">plugin</a> to my app. I have loaded my plugin using CakePlugin::load('Linkedin');. Now I get error </p>
  
  <pre><code>Fatal error: Call to a member function get() on a non-object in ....\Controller\Component\LinkedinComponent.php on line 95
  </code></pre>
  
  <p>On line 95 of Linkedin component this is what is there </p>
  
  <pre><code>    $consumer = $this-&gt;_createConsumer();
      $result = $this-&gt;Consumer-&gt;get($key, $secret, $this-&gt;apiPath . $path);
  </code></pre>
  
  <p>It says the get method is not found on linkedincomponent. But the get method is in oauth_consumer.php.</p>
  
  <p>I appreciate all your help</p>