Is it possible to call the js-function from the MaterializeCSS framework from php-code? I try to do by analogy with alert (), but it does not work ..
if($condition) { //echo "<script>alert('foo')</script>"; echo "<script>Materialize.toast('bar')</script>"; }