Reputation: 13
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
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