According to PSR-4 autoloading, a fully qualified class name has the following form:
\<NamespaceName>(\<SubNamespaceNames>)*\<ClassName>
So this could be my class,
namespace MyNamespace\Controller;
class Foo
{
public $message = 'hello Foo';
}
But what about my directory structure? Should I have a directory called MyNamespace
??
Is it not complying with PSR-4 autoloading - if I have this directory structure below?
index.php
app/controller/
app/model/
app/view/