我是一个codeignite新手,并试图添加一个图像在我的文件下的查看文件夹。codeigniter图像路径
我将<img src="../images/myImage.jpg"></img>
添加到我的service_view.php中。我能看到的只是一个小图标的断开链接。
但是,如果我改变
<img src="../../user_guide/images/myImage.jpg"></img>
我的路我可以看到图像。
我的文件系统是如下:
application-
view ->folder (where service_view.php is located)
images -> folder (where myImage.jpg is located)
user_guide-
images ->folder ((where myImage.jpg is located))
谁能帮助我这件事?非常感谢!
我认为最好的做法是把图像文件夹中的应用程序文件夹下。对于我来说,一条简单的路径无法显示图像也很奇怪。 – FlyingCat
你有没有参考最佳做法? –
不,我不这样做,但我看过几个教程。不知道我现在应该做什么... – FlyingCat