I have some code in a database which calls a javascript plugin.
Part of that is
'defaultValues': {
'hidden_1': "<?php echo $sref; ?>"
},
$sref is set at the begining of the page with no problems and the code above is called from a database entry:
@if ($pg->formCode <> '')
<div class="container">
<div class="row">
<div class="col-12" style="margin-top:1em">
{!! $pg->formCode !!}
</div>
</div>
</div>
@endif
The problem is that the line is not being evaluated but passed as an unevaluated string.
Any ideas would be great!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire