clientScript->registerCoreScript('jquery'); ?> user->getFlashes(false); if (!empty($flashMessages)) { $profind_notificaciones = <<user->hasFlash('success')): $profind_notificaciones .= '$.sticky("' . Yii::app()->user->getFlash('success') . '", {autoclose : 5000, position: "top-center", type: "st-success" });'; endif; if (Yii::app()->user->hasFlash('error')): $profind_notificaciones .= '$.sticky("' . Yii::app()->user->getFlash('error') . '", {autoclose : 5000, position: "top-center", type: "st-error" });'; endif; if (Yii::app()->user->hasFlash('notice')): $profind_notificaciones .= '$.sticky("' . Yii::app()->user->getFlash('notice') . '", {autoclose : 5000, position: "top-center", type: "st-info" });'; endif; $profind_notificaciones .= '}'; $profind_notificaciones .= '}'; Yii::app()->clientScript->registerScript('profind_notificaciones', $profind_notificaciones, CClientScript::POS_END); } ?>