This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
yooniks930379
Hello,
I need some help on include an php file in model.
I had use builder to create a model & class call "Ctbc" , I wish to include a php file into this model so I can use the API function
my model path : plugins/author/ctbc/models/Ctbc.php
my api.php path : plugins/author/ctbc/models/vendors/api.php
Please help Thank you
JeffGoldblum
Look into PHP namespacing, you'll need to understand that and composer autoloading of classes to figure out how to properly use the use
statements at the top of the file.
1-2 of 2