V
V
vlad_lutsky2017-10-24 11:19:06
Laravel
vlad_lutsky, 2017-10-24 11:19:06

How to refer to the class object in the page code?

On the page I use {{user.name}} - displays the name
In the input code

function onStart()
{
 $this['info'] = $user['name'];
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2017-10-24
@vlad_lutsky

If I understand correctly, then the class has a $info property, then$this->info = $user['name'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question