Classes under the php file use the

In

php, for example, I have a project file. I created a file in the root directory. Here are the third-party class files I downloaded online or my own class files. How can I use them in the controller?

Php
Aug.24,2021

2018, you have to try the dependency management tool composer


include or require try


use namespace to load.
one way is to use: composer, to configure your composer.json, and then update to enter
one is to create your own folder to store third-party libraries such as: lib, to modify your library files according to the specific.
there are instructions in general third-party class libraries.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bd57-2ba42.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bd57-2ba42.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?