wonton
wonton

Reputation: 8287

ReflectionException Class SearchController does not exist

I'm having the problem in Routing to Controller fails in Laravel 4 except none of those solutions help. I ran the dump-autoload. HomeController still works.

Ive been at this for an hour now and I haven't had this problem in previous version of Laravel. Getting very frustrated.

What bothers me is that the autoload_classmap contains the path for the SearchController, yet I still get the ReflectionException... I don't have any typos I've checked everything so many times now.

If I move SearchController.php it gives me a failed to open stream: No such file or directory so clearly it read the file.

<?
class SearchController extends BaseController {

    public function index() {
        return View::make('search.index');
    }
}

Upvotes: 0

Views: 346

Answers (1)

tomzx
tomzx

Reputation: 2033

You should use <?php not <?.

Upvotes: 1

Related Questions