Get active view in block

Permalink
Hello,

I am attempting to get the currently used custom template inside a block. It appears there is a getTemplate() function within the BlockView class, but this magic all happens before loading the block's controller.

I've tried re-creating the BlockViewTemplate and passing a Page object (not a Block object as I used $c->getCollectionObject() and that appears to return a Page), but that seems overly complicated for something that's already taken place.

Is there a way to obtain the actively used template inside the block's controller?

Thanks!

 
ScottC replied on at Permalink Best Answer Reply
ScottC
query("select bFilename from Blocks where bID = ?",array($bID));