(on Thursday, 16 April 2009, 03:45 AM +0300):
> There is no Dojo Dialog dijit support in Zend_Dojo. How can I display
> it on the page? I use Zend_Dojo in programmatic mode.
Try the following (assuming $content has been set previously):
<?php
$this->dojo()->requireModule('dijit.Dialog');
$this->onLoadCaptureStart(); ?>
function() {
var dialog = new dijit.Dialog({
title: "Cool dialog",
style: "width: 300px;",
content: <?php echo $content ?>
});
dialog.show();
}
<?php $this->onLoadCaptureEnd(); ?>
--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论