get block path from within block controller
basicly need something like below, however i get an error.
$layout_dir = Block::getBlockPath() . '/layouts/';
Fatal error: Call to undefined method Slickslider2BlockController::getPackageID()
I haven't asked it to run getPackageID any were. I assume it is in the Blocks class
$layout_dir = dirname(__FILE__) . '/layouts/';
If you were going to use it in the view.php you could use
$layout_dir = $this->getBlockPath() . '/layouts/';