PHP: class not found even with using namespace -


i'm trying execute php script ajax error fatal error: class 'backoffice\controllers\typesmanager' not found although used namespace.
php file called ajax function:

namespace backoffice\controllers; use backoffice\controllers\typesmanager;  $tm = new typesmanager(); echo $tm->getalltypes(); 

and typesmanager class:

namespace backoffice\controllers;   /**  * typesmanager  */ class typesmanager{      function __construct(){      }      public function getalltypes(){         echo 'display types.';     } } 

both classes under path: backoffice/controller.
missing here ?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -