我的index.php文件存在于Students
.Where(x=> x.Course.Course_Subjects
.Any(y => y.Subject.Teacher_Subjects
.Any(z => z.Teach_ID == someTeacherId)
)
)
.Select(x => x)
目录中,并且我试图使用存在于同一目录public_html/myapp/files
中的库。但是我遇到了错误
找不到“ SightengineClient”类 /home/public_html/myapp/files/index.php在第7行
我哪里错了? 这是我的代码
public_html/myapp/files
答案 0 :(得分:1)
如果您不使用composer管理项目(生成自动加载),则使用 use kewyord将不包括该类,您会以这种方式要求文件吗:
lambda
使用require_once将确保您仅被包括一次 文件。