slywalker / cakephp-plugin-boost_cake

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

Update BoostCakeHtmlHelper.php #69

Closed Theaxiom closed 7 years ago

Theaxiom commented 9 years ago

Added ability to easily create buttons and button groups for Bootstrap

Theaxiom commented 9 years ago
                    <?php echo $this->Html->buttonGroup(
                        array(
                            $this->Html->button(array('cog', 'default', 'xs'), array('action' => 'edit', $product['Product']['id']), array('escape' => false, 'title' => __('Edit'))),
                            $this->Html->postButton(array('trash', 'default', 'xs'), array('action' => 'delete', $product['Product']['id']), array('escape' => false, 'title' => __('Delete')), __('Are you sure you want to delete # %s?', $product['Product']['id']))
                        )   
                    ); ?>