Hi all. First of all thanks for all the hard work to the people here at themoviedb.org for your API. I'm using the php wrapper by glamorous and I was wondering if there was an elegant way to catch when it doesn't get a result? right now it's breaking my layout when I try to find something that doesn't exist, etc. Thanks
Non riesci a trovare un film o una serie Tv? Accedi per crearlo.
Vuoi valutare o aggiungere quest'elemento a una lista?
Non sei un membro?
Risposta da Travis Bell
il 10 gennaio, 2014 alle 11:30AM
Hi stereotyped,
I can't provide you specific help with that wrapper but empty results are just an empty
results
array:You should be able to just check for an empty array and conditionally show your results or some kind of "nothing found" message.
Cheers.
Risposta da stereotyped
il 10 gennaio, 2014 alle 5:39PM
https://github.com/glamorous/TMDb-PHP-API
This is what i'm using. Maybe someone else can help me with it. The problem is it doesn't return an empty array but it throws an exception which i'm unsure of how to check that :/