Block URL1 user found helpful
$bv = new BlockView();
$blockURL = $bv->getBlockURL();
Also, working with Attributes, getting select attribute values and options seems tricky, if anyone has that stuff figured out if you could post, it would be appreciated!
I've updated a lot of the Cheat Sheet athttp://www.weblicating.com/cheat-sheet,... things that do not have entries for 5.7 are things I haven't got worked out yet. If you have a few minutes take a look and send along some snippets,
The "setBlockObject" method was removed from BlockView class, so you have to pass the block obj in constructor:
$bv = new \Concrete\Core\Block\View\BlockView($this->getBlockObject()); $blockURL = $bv->getBlockURL();
hope that helps,
I actually tried to do the use thing...
use /blah/blah/blah/BlockView (with real namespace in there)
Shouldn't that do the same thing?