本文整理匯總了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) {