1

This may be a very simple question and I apologise for my naivety in advanced but I am having trouble accessing my images in subfolders.

I am developing on MAMP with Twig and PHP and here is my problem.

<img src="myimage.png" alt="">

Will successfully display 'myimage' on the site however when I try to access 'anotherimage' in a subfolder called 'pictures', I am unsuccessful.

<img src="pictures/anotherimage.png" alt="">

Doesn't want to work. I have tried:

<img src="./pictues/anotherimage.png" alt="">

as well as various other combinations but it wont display. I began to think this was a file permissions problem. The only way I know to change this was to go to the 'pictures' file and mke all permissions as 'read and write' via the finder in mac. This has not mde a difference.

Any ideas? Could it be a MAMP issue?

4

1 回答 1

0

我相信您的文件夹组织对于解决这个问题当然很重要。您可能想在此处查看帮助和说明:HTML - 从子文件夹中选择根文件夹的图像

于 2013-10-25T14:34:27.217 回答