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
Post a Comment