错误类' App \\ Helpers \\ SomeClass'在laravel 4中找不到

时间:2016-09-28 10:39:36

标签: php laravel-4

我在目录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();

    }

}

?>

0 个答案:

没有答案