PHP Fatal error: Interface 'App\\PluginContract' not found -


in same direcory have:

html/app

plugin.php plugincontract.php getuid.php 

on getuid.php have code:

<?php  namespace app;  include_once "plugin.php"; include_once "plugincontract.php"; use carbon\carbon; use teamspeak3\ts3exception;  class getuid extends plugin implements plugincontract {     public function istriggered()     {          ...            } } 

and plugincontract.php:

<?php  namespace app;  interface plugincontract {     public function istriggered(); } 

it seems ok, got error:

php fatal error: interface 'app\plugincontract' not found in /var/www/html/app/getuid.php on line 11

the weird thing can load plugin.php without problem gets error plugincontract.php in same folder.

what i'm doing wrong?

what tring add web interface php application, though don't need autoload because automatically start server, discovered adding again autoload index.php resolved problem.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -