hi guys,
attention to Phalcon Docs
$di->set(
"flash",
function () {
$flash = new FlashDirect(
[
"error" => "alert alert-danger",
"success" => "alert alert-success",
"notice" => "alert alert-info",
"warning" => "alert alert-warning",
]
);
return $flash;
}
);
i want to print alerts and messages like a json string :
[["success","Created Successfully"],["warning","Name may be incorrect"],...]
how can i prevent printing default html template of flashsession<div class=....
?