0
Hello, I have this javascript function that receives a parameter:
function teste(id){
document.getElementById("campo1").innerHTML = id;
document.getElementById("campo2").innerHTML = {{app\User::find("id")->titulo}}
}
How do I get the User::find() function to take the 'id' variable that is from javascript, is there any way to do this?
Thanks William, the issue of the Lade run in the back-end cleared my doubt.
– Italo Eduardo