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
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 10 de enero de 2014 a las 11:30
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.
Contestado por stereotyped
el 10 de enero de 2014 a las 17:39
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 :/