user3398902
user3398902

Reputation: 13

Accessing file in Vendor folder cakephp

In cakephp how can I access a file, inside vendor folder?

I am not using app folder. I have created another project folder with same structure of app.

Should I use the same

App::import('Vendor','phpseclib0.3.6/Net/SSH2.php'); 

statement or anything else.

Upvotes: 0

Views: 1247

Answers (1)

Nik Chankov
Nik Chankov

Reputation: 6047

Vendors libs should follow some name conventions. For libs with custom names us the following:

App::import(
    'Vendor',
    'aUniqueIdentifier',
    array('file' => 'phpseclib0.3.6/Net/SSH2.php')
);

And read section Loading Vendor Files

Upvotes: 0

Related Questions