N
N
Nick Bukovskiy2018-04-13 10:13:52
PHP
Nick Bukovskiy, 2018-04-13 10:13:52

When transferring the site to the hosting, it does not see the namespace (use App\...) what could be the problem?

There is an application on Slim when transferred to hosting, it does not see the class that I connect using namespace

use App\Model\DB as DB;
 $db = new DB(); - не видит класс

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander null, 2018-04-13
@snikes

what if you use new \App\Model\DB() ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question