Created
November 15, 2014 00:30
-
-
Save andrebian/ce64d8bcde9fe934dab5 to your computer and use it in GitHub Desktop.
Exemplo de modal com bootstrap 3 e Html Helper do Cake PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $this->Html->link('Lista', '#list', array( | |
'data-toggle' => 'modal', | |
'class' => 'btn btn-danger' | |
)); ?> | |
<div class="modal fade" id="list" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog" style="width: 80%"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | |
<h4 class="modal-title" id="myModalLabel">Título da modal</h4> | |
</div> | |
<div class="modal-body"> | |
Conteúdo da Modal | |
</div> | |
</div> | |
</div> | |
</div> |
Show
Obrigado, não sabe quanto ajudou.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Muchas gracias por este ejemplo. Me ayudó mucho para un trabajo de la universidad.