Illuminate \\ View \\ View :: __ toString () method should not throw an exception in unix

I am using laravel 4.2

die(View::make('amendments.changesPopUp', $this->data));

This is the code I use to get the view to call ajax. This works on my local windows machine, but it does not work for the server (unix). Any idea on why this is happening?

and yes, I checked the uppercase and lowercase, the cases for the file name are the same. and it is strange that the error points to line 0 used controller.

This is the error I get

{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Method Illuminate\\View\\View::__toString() must not throw an exception","file":"mysite.com/app/controllers/myController.php","line":0}}

Update: this worked when I used a simple php file instead of a blade template. I still don't know what caused the error?

+4
source share
2 answers

die() . Laravel , , die().

return View::make('amendments.changesPopUp', $this->data);

changesPopUp, AJAX.

+1

, die() , .

, , , , PHP __toString ( ..), echo View::make(...)->render() echo View::make(...), - .

, die.

+8

All Articles