Block Custom Template Path/URL

Permalink
Is there anyway to get block custom template path/URL ?
Can't find any function to cover it in Block, BlockView, BlockViewTemplate.

Thanks for advance.

goesredy
 
A3020 replied on at Permalink Reply
A3020
You'd try something like this:

$b->getBlockPath().DIRECTORY_SEPARATOR.$b->getBlockFilename();


getBlockFilename returns null if there's no custom template set.
goesredy replied on at Permalink Reply
goesredy
It's only return path of the controller, not the path of the custom template
Example, custom template placed on package, that snippet will return where the controller is, not where the custom template view path.