slywalker / cakephp-plugin-boost_cake

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

added BoostCakeAccordionHelper #51

Open zeroasterisk opened 10 years ago

stantond commented 10 years ago

Would any content work inside the accordion if implemented this way? Including other html, php and helpers?

zeroasterisk commented 10 years ago

As of now, no. I build the data array with helpers or elements, the pass into accordion, for final formatting/wrapping.

It is kinda like a multipart sprintf. Just a standardized wrapping.

I thought about making a series of simple calls to star accordion, make header, start body, stop body, ... So you could do it more inline... But I decided at that point writing raw HTML is better.

The use case for this simple data wrapping certainly exists, but you are right to ask. It is a lot less general purpose and atomic than the rest of the helpers.

(BTW thanks for the great helpers/plugin. We were customizing the one from loadsys but it was getting ugly. This one is great to work with.)

Thanks, -alan