我在目录main中有文件项目,但是将项目的一部分移动到内部类如何执行此代码返回错误
Class' App \ Helpers \ SomeClass'在第14行的/var/www/html/myapp/your-project-name/app/views/tomi/index.php中找不到
<?php
namespace App\Helpers;
class SomeClass
{
public static function SomeMethod()
{
print "<font color=red>Dobrze</font>";
}
public static function SomeMethod2()
{
print "<font color=red>źle</font>";
}
public static function menu() {
}
public static function form(){
Form::open(array('url' => '/','method' => 'get'));
print ("<div align=center>");
Form::text('szukaj', Input::old('szukaj'));
print ("<br>");
Form::submit('Szukaj!');
Form::close();
}
}
?>