Bonsoir
J'ai un petit soucis:
Dans ma vue j'ai ceci
Mes objets sont sur mon bureau donc on a un truc comme ça $item->path = C:/Users/moi/Desktop/monDossier/monELem.txt
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <?php foreach($results as $item): $image_properties = array( 'alt' => $item->path, 'src' => $item->path , 'class' => 'post_images', 'width' => 200, 'height' => 200, 'title' => $item->path ); echo "<li class=\"list\">" .img($image_properties) . "</li>"; endforeach; ?>
j'ai bien cela pour 'alt' par exemple mais pour 'src' jai un truc de ce style
http: //localhost/public_html/C:/Users/moi/Desktop/monDossier/monELem.txt
mais pourquoi j'ai ce "http: //localhost/public_html/" qui se met devant ????!!!!Du coup je ne peux pas récupérer les éléments
ps : non je ne peux pas changer l'endroit de mes éléments ma bd est déjà remplie![]()
Merci pour votre aide
Partager