slywalker / cakephp-plugin-boost_cake

Bootstrap Plugin for CakePHP
http://slywalker.github.io/cakephp-plugin-boost_cake/
278 stars 93 forks source link

Truncate Method is missing #77

Closed ismak50 closed 9 years ago

ismak50 commented 9 years ago

Hi to you, I am using your plug in in my cake dev. it is very useful. When I try to truncate some string in a view echo $this->Html->truncate(nl2br(h($post['Post']['content'])),20); I have this error: Method BoostCakeHtmlHelper::truncate does not exist [CORE/Cake/View/Helper.php, line 231]

I'm using cakephp v2.6

I don't understand because you extend your helper from HtmlHelper. Thank you

olivMertens commented 9 years ago

hi, Because the truncate is based on the Text Helper, not the Html. i hope it will be helpfull. ++

ismak50 commented 9 years ago

i was returning to this issue to say the same thing. 10x xam1311

Have a nice day !