bem / bh-php

PHP port of https://github.com/bem/bh. It's cool thing but better use this:
https://github.com/zxqfox/php-fpm-bem-demo-heroku
MIT License
34 stars 9 forks source link

No html code output #23

Open cmnstmntmn opened 8 years ago

cmnstmntmn commented 8 years ago

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 8 years ago

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?