getThemePath in view.php
Permalink
I'm editing a view.php block file and cannot echo back the theme path. I don't understand why it's not working in this block because I've it working in other blocks. Below is the code I have in my file that isn't working.
One thing that is odd is that if I cause the code to error out by doing the following, it echos out the theme path correctly from the code above. However, if I delete all of the code from the view file except for the code above, it still doesn't work.
I'm very confused. Any help would be very appreciated.
$v = View::getInstance(); $themePath = $v->getThemePath(); echo $themePath;
One thing that is odd is that if I cause the code to error out by doing the following, it echos out the theme path correctly from the code above. However, if I delete all of the code from the view file except for the code above, it still doesn't work.
<img src="<?php echo $ih->getThumbnail($f, 1400, 1910)->src; ?>" width="640" test="<?php $vs->getThemePath(); ?>">
I'm very confused. Any help would be very appreciated.