Fully customized modals

You can also fully customize the various parts of the modal.

<?php
    echo $this->Modal->create(['id' => 'MyModal4']) ;
    echo $this->Modal->body() ; // No header
    echo $this->Modal->footer() ; // Footer with close button (default)
    echo $this->Modal->end() ;
?>
<div id="MyModal4" tabindex="-1" role="dialog" aria-hidden="true" class="modal fade ">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body ">
            </div>
            <div class="modal-footer ">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>