我有一个使用jQuery UI的Zend Framework应用程序.
在我的控制器中,我使用FlashMessenger助手设置错误/成功消息,如下所示:
// ExampleController.php
$this->_helper->FlashMessenger('Sorry, could not complete your request.');
Run Code Online (Sandbox Code Playgroud)
在我的布局中,我使用Noumenal FlashMessenger View Helper显示消息
// layout.phtml
<?php echo $this->flashMessenger(); ?>
Run Code Online (Sandbox Code Playgroud)
我想利用我的jQuery UI主题的CSS样式来设置我的错误消息,如下所示:
<div class="ui-state-error ui-corner-all">
<p><span class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> Sample ui-state-error style.</p>
</div>
Run Code Online (Sandbox Code Playgroud)
...但是View Helper正在完成所有的工作,所以我无法改变我想要的类.所以在走下死路之前,我想我会问社区.这是我的问题:
'error'=>'ui-state-error', 'info'=>'ui-state-highlight'等