bem/bh-php

No html code output

cmnstmntmn opened this issue · 1 comments

why $bh->apply([ 'block' => 'button' ]); doesn't output any html
i have to use echo($bh->apply([ 'block' => 'button' ])); in order to get it

qfox commented

This is because you can easily output it with echo.

Better to have echo in echo $bh->apply(...); than ob-wrapper in ob_start(); $bh->apply(...); $res = ob_get_clean();, right?