本文整理汇总了PHP中tservices_helper::setFlashMessageFromConstWithTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP tservices_helper::setFlashMessageFromConstWithTitle方法的具体用法?PHP tservices_helper::setFlashMessageFromConstWithTitle怎么用?PHP tservices_helper::setFlashMessageFromConstWithTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tservices_helper
的用法示例。
在下文中一共展示了tservices_helper::setFlashMessageFromConstWithTitle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __paramInit
$action = __paramInit('string', NULL, 'action', '');
if ($action == 'save') {
$errors = tu_validation($tservice);
if (count($errors) == 0) {
$id = $tservice->create();
$sess = __paramInit('string', NULL, 'uploader_sess', NULL);
if ($sess) {
$tservice->addAttachedFiles($sess, $id);
}
$sess_p = __paramInit('string', NULL, 'preview_sess', NULL);
if ($sess_p) {
$tservice->addAttachedFiles($sess_p, $id);
}
//message ?
$msg_type = $tservice->active === 't' ? 'new_saved_publish' : 'new_saved';
tservices_helper::setFlashMessageFromConstWithTitle($msg_type, $tservice->title);
$tu_card_uri = sprintf('/tu/%d/%s.html', $id, tservices_helper::translit($tservice->title));
header("Location: {$tu_card_uri}");
exit;
}
}
//SEO
$page_title = 'Добавление типовой услуги на FL.ru';
//$page_descr = ''
//$page_keyw = '';
}
//------------------------------------------------------------------------------
//Превью
$preview_field = array();
if (count($tservice->preview)) {
foreach ($tservice->preview as $key => $image) {