Problems with TP framework namespaces and use

as shown in the figure Email.php and Index.php are both namespaces namespace app\ index\ controller in the same directory. I wonder if I want to introduce this class file by using Email.php in Index.php. Why is it wrong for me to introduce use app\ index\ Email ?

Mar.14,2021

because under the same namespace, new Email is fine.

Menu