0

Possible Duplicate:
Instantiating a vendor class in class constructor

I have a 3rd party vendor class called fancyVendor and I load it inside my controller with this:

App::import('Vendor', 'fancyVendor', array('file' => 'fancyVendor.php'));
class MyController extends AppController {

}

But I need to reach this vendor class from other controllers. It seems like I need to use this as a static class. How can I use a vendor class statically ?

Community
  • 1
  • 1
trante
  • 33,518
  • 47
  • 192
  • 272

0 Answers0