Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ベンダーを使用せずに、外部 API を cakephp にインポートする必要があります。同じサーバーに次のフォルダーがあります。
wwww/myapi/myclass.php wwww/web/app/vendors
myapi他のアプリケーションから使用できるため、cakephp フォルダーに含めたくありません。
myapi
include('../../../ myapi / myclass.php);を試しましたか??また、それが巨大なファイルでない場合は、ベンダーまたはWebルートフォルダーにコピーするだけで済みます...
シンボリック リンクを使用します。
ln -s www/myapi/myclass.php www/web/app/vendors/myapi/myclass.php