Andrew
Andrew

Reputation: 421

Laravel views not loading

I am writing an application in laravel, it works fine on windows, loads the views

but when i move it over to my production machine on linux, some of the views wont load.

http://sentinel.weissconsultancy.com/

example there

application/views/widgets/servicesWidget.php is there, but it wont load it at all, it does the same for everything else in that folder

Upvotes: 2

Views: 1345

Answers (1)

bretterer
bretterer

Reputation: 5781

I have this issue a lot. I found that it was better for me to use "snake case" for this kind of issue because of the case sensitivity compatibility issues between windows and linux. This is an annoying thing that I have found.

Change your view to be widgets/services_widget.php and reference it via

View::make('widgets/services_widget'); 

and the issue should be resolved.

Upvotes: 5

Related Questions