How do I link to a file in a custom block from View.php?

Permalink
Hey there - I hate to start a new thread just to ask a question like this ... but I've given up.

I can't for the life of me figure out how to link to an image in /blocks/myblock/view.php ... does anyone know how? Or where 'view.php' exists when it is run?

For reasons that I can't explain - I can't just go to the root either, so I need to somehow create, detect, dynamically or statically a path to my themes/themename/images folder - or to my blocks/myblock/images/ folder etc.

Any help or direction is greatly appreciated.

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.