mercredi 17 juillet 2019

Why isn't my filepath to an image working?

I have content which is more or less repeated in more than one webpage so I have created a template and stored this in an includes folder. I have a number of files in this includes folder such as a header and footer and they are all working fine.

In this new template I have created, I link to images. To avoid issues with filepaths when the template is accessed from different levels I decided to put the images in the includes folder also, so the template in the includes folder can access the images directly.

However, this isn't working unfortunately.

My original code for the non-template file was as follows

if($teacher['lesson_type'] == "mix") {print ("");}

I took the contents of the image folder and put it in the same location as the template file and changed the code to...

if($teacher['lesson_type'] == "mix") {print ("");}

Seemed simple enough but the images aren't displayed.

The mini profiles template is called from a file called mini profiles using the following line of code:

The template gets displayed fine. It's just the images that aren't. I tried things like:

{print ("");}

But again, not working...

Any help as to why would be greatly appreciated. Thanks




Aucun commentaire:

Enregistrer un commentaire