DChiuch Posted December 8, 2014 Share Posted December 8, 2014 Hi, is there any way to catch exceptions in template logic?My template logic includes a \IPS\gallery\Image::loadFromUrl($url); call, and at the moment, if I try to load a gallery image which doesn't exist, I get "exception 'OutOfRangeException'". I'd like to be able to handle this so that the page loads with no image, rather than having the page be entirely broken. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.