Hi,
i have to include some hlper classes to my application. so i generated directory classes in my backend-folder to put there my helpers.
<?
namespace backend\classes;
class foo()
{}
In the controller i have the following:
<?
namespace backend\controllers;
use backend\classes\foo;
use yii\web\Controller;
class myController extends Controller
{
actionIndex()
{
$f = new foo();
}
}
Unable to find ‘backend\classes\foo’ in file: /var/www/actportal/backend/classes/foo.php. Namespace missing?
I searched around but i can’t find a solution. I hope here will be somebody help me.
Thanks
Linuxanton