A
A
Anna2018-11-30 17:04:03
Laravel
Anna, 2018-11-30 17:04:03

Is it possible to generate a view in a view without specifying variables?

I'll try to explain!
There is a set of components that has a fuzzy number of attributes
Used to generate, for example, a text input field
For example

<input type='text' placeholder='$element->options['placholder']' value='$element->options['nameValue']'>

It may still have several attributes that are not related to html at all,
I deduced them. It's not hard. And here everything is fine until the moment nameValue is the name of the variable.
For example, $street is stored in the database.
results in the output:
<input type='text' placeholder='Улица' value='$street'>

And there I already tried {{$street}} The code itself returns something like this Former::get('blabla');
That is, I'm directly executing a function that returns a form,
but how to render it with data not passed to the function?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question