There is a file Utilis.php .
Utilis.php
It has a Class User .
Class User
How to use this class in another file?
require_once
Through the namespace. For example:
$user = new Classes\User($params); $user->getUser($id);
And in Utilis.php specify:
namespace Classes;
PS Or yes, require_once.
Source: https://ru.stackoverflow.com/questions/574486/More articles:How to iterate over the elements of an object?Proxy_pass from urlThe AMQP connection was closed:I can’t transfer id in retrofitWhy did INNER JOIN in SQL get this name?Apache2 change DocumentRootMultiple variables in SQliteDiff in git: single line or entire fileData transfer between C # classesQML and javascriptAll Articles
require_once? - user207618