Php 我如何通过引导将解除图标添加到phalcon会话闪存消息
我的服务配置如下Php 我如何通过引导将解除图标添加到phalcon会话闪存消息,php,twitter-bootstrap,phalcon,flash-message,Php,Twitter Bootstrap,Phalcon,Flash Message,我的服务配置如下 $di->set('flashSession', function () { return new FlashSession([ 'error' => 'alert alert-danger', 'success' => 'alert alert-success', 'notice' => 'alert alert-info', 'warning' => 'alert ale
$di->set('flashSession', function () {
return new FlashSession([
'error' => 'alert alert-danger',
'success' => 'alert alert-success',
'notice' => 'alert alert-info',
'warning' => 'alert alert-warning'
]);
});
$di->set('flashSession', function () {
/* Custom file available in the library Directory */
return new BootstrapFlash();
});
引导警报消息可根据需要工作,但不带Disclose图标
如何使我的所有会话警报消息都具有解除图标。下面是一个快速的会话警报消息 在库目录中创建一个名为BootstrapFlash.php的文件 将代码粘贴到下面 这样,您的flash会话消息将具有“关闭”按钮
您还可以根据需要修改会话警报消息 这里有一个快速的会话flash消息 在库目录中创建一个名为BootstrapFlash.php的文件 将代码粘贴到下面 这样,您的flash会话消息将具有“关闭”按钮 您还可以根据需要修改会话警报消息
$di->set('flashSession', function () {
/* Custom file available in the library Directory */
return new BootstrapFlash();
});