Here I am trying to archive calling remote url in modal popup. I am searching around and have not found an good link to go...
In twitter boostrap document state:
Quote
"if a remote url is provided, content will be loaded via jQuery's load method and injected into the .modal-body. If you're using the data api, you may alternatively use the href tag to specify the remote source. An example of this is shown below:
<a data-toggle="modal" href="remote.html" data-target="#modal">click me</a>".
But i failed to load my url (create form) while i do in yii boostrap ext below is my code:
<?php $this->beginWidget('bootstrap.widgets.TbModal', array('id'=>'myModal')); ?>
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Modal header</h4>
</div>
<div class="modal-body">
<p> Modal body </p>
</div>
<div class="modal-footer">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'type'=>'primary',
'label'=>'Save changes',
)); ?>
</div>
<?php $this->endWidget(); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
'label'=>'New Project',
'type'=>'primary',
'url'=>$this->createUrl('create'), // My Remote URL
'htmlOptions'=>array(
'data-toggle'=>'modal',
'data-target'=>'#myModal',
),
)); ?>
Appreciate any help.
Regards,
pod2g

Help











