Fork me on GitHub

Rapport de message :*
 

Re: Utiliser l'api allociné dans xoopstube

Titre du sujet : Re: Utiliser l'api allociné dans xoopstube
par seboseboss sur 22/12/2014 23:17:56

Déja est ce que c'est vraiment $données qu'il faut appeller car le code de base fonctionne avec $donnees['movie']:


foreach ($donnees['movie'] as $key)


Les infos brut de $données ça peut aider:
Array ( [page] => [count] => [results] => Array ( [0] => Array ( [type] => movie [$] => 10 ) [movie] => 10 ) [totalResults] => 10 [movie] => Array ( [0] => Array ( [code] => 61282 [originalTitle] => Avatar [productionYear] => 2009 [release] => Array ( [releaseDate] => 2010-09-01 ) [castingShort] => Array ( [directors] => James Cameron [actors] => Sam WorthingtonZoe SaldanaSigourney WeaverStephen LangMichelle Rodriguez ) [statistics] => Array ( [pressRating] => 4.33333 [userRating] => 4.29463 ) [poster] => AlloImage Object ( [imageIcon:AlloImage:private] => [imageBorder:AlloImage:private] => [imageSize:AlloImage:private] => [imageHost:AlloImage:private] => images.allocine.fr [imagePath:AlloImage:private] => medias/nmedia/18/78/95/70/19485155.jpg ) [link] => Array ( [0] => Array ( [rel] => aco:web [href] => http://www.allocine.fr/film/fichefilm_gen_cfilm=61282.html ) ) [title] => Avatar [posterURL] => http://images.allocine.fr/medias/nmed ... /95/70/19485155.jpg ) ) [movieSorted] => Array ( [0] => Array ( [code] => 61282 [originalTitle] => Avatar [productionYear] => 2009 [release] => Array ( [releaseDate] => 2010-09-01 ) [castingShort] => Array ( [directors] => James Cameron [actors] => Sam Worthington, Zoe Saldana, Sigourney Weaver, Stephen Lang, Michelle Rodriguez ) [statistics] => Array ( [pressRating] => 4.33333 [userRating] => 4.29463 ) [poster] => AlloImage Object ( [imageIcon:AlloImage:private] => [imageBorder:AlloImage:private] => [imageSize:AlloImage:private] => [imageHost:AlloImage:private] => images.allocine.fr [imagePath:AlloImage:private] => medias/nmedia/18/78/95/70/19485155.jpg ) [link] => Array ( [0] => Array ( [rel] => aco:web [href] => http://www.allocine.fr/film/fichefilm_gen_cfilm=61282.html ) ) [title] => Avatar [posterURL] => http://images.allocine.fr/medias/nmed ... /95/70/19485155.jpg ) ) )


D'ailleur y'a un soucis, il manque le synopsis(c'est un autre pb)

J'y connais pas grand chose en type de tableau mais je crois que c'est un tableau de données et donc il doit falloir utiliser section au lieu de foreach.

J'ai raison ou pas?

Non ça marche pas, ou ça me prend la tête ce truc, j'ai eu aucun pb pour adapter l'api allociné et la je passe des heures et des heures pour afficher 3 lignes, prise de tête.

J'arrête.


Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

95 Personne(s) en ligne (70 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 95 | Plus ...