You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I Want to add mobile support [not responsive, yet a whole different views dir] in laravel,
so I did a view-configuration based on agent detection, see http://pastebin.com/H2d0sszS with the full code. for some reason, line #22 breaks the code.
Now, for emails, I want to use a single directory for both desktop/mobile versions of the site so I'm trying to set a namespace for it and then everything breaks.
I tried placing the View::addNamespace in app/start/global.php but then I a different error: Symfony \ Component \ Debug \ Exception \ FatalErrorException --> Method Illuminate\View\View::__toString() must not throw an exception
And that suddenly happens in vendor/laravel/framework/src/Illuminate/Database/Connection.php
Any ideas?
The text was updated successfully, but these errors were encountered:
That exceptions sounds like there's something wrong with the view itself. Make sure the views are right and that they don't have any errors, because to me it sounds like the view is causing the error. The namespace setup looks fine and shouldn't be breaking it.
As an aside, this is probably better off on the Laravel forums and not as a GitHub issue.
I Want to add mobile support [not responsive, yet a whole different views dir] in laravel,
so I did a view-configuration based on agent detection, see http://pastebin.com/H2d0sszS with the full code. for some reason, line
#22
breaks the code.Now, for emails, I want to use a single directory for both desktop/mobile versions of the site so I'm trying to set a namespace for it and then everything breaks.
I tried placing the View::addNamespace in
app/start/global.php
but then I a different error:Symfony \ Component \ Debug \ Exception \ FatalErrorException --> Method Illuminate\View\View::__toString() must not throw an exception
And that suddenly happens in
vendor/laravel/framework/src/Illuminate/Database/Connection.php
Any ideas?
The text was updated successfully, but these errors were encountered: