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.

$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.

 
TNTdesign replied on at Permalink Reply
It's a custom template for the power slider lite block that I'm trying to do this in, if that helps.