https://github.com/hg096/mewmew
The source code was posted here on the git hub! Hope trongate is a great framework!
What I want to do is try to recycle ui. I'm trying to get the html code in sam.php file
If I just put $name, $message properly, I want to recycle dozens and hundreds of times per page.
First of all, what I've tried is
$data1["name"] = "1. Default name";
$data1["message"] = "1. Default statement";
$data2["name"] = "2. Default name";
$data2["message"] = "2. Default statement";
$data['data1'] = $data1;
$data['data2'] = $data2;
$this->template('public', $data);
====
I tried this, but if the load function is the same file, it's supposed to be loaded only once. So I left a question because I tried different methods and I didn't know how. Have a nice day.
I want to keep calling and recycling if I set ui like a class, can you tell me how?
2 years ago
2 years ago
#1
2 years ago
#2
Then, inside your view file:
2 years ago
#3
What I wanted was not to use a repeat sentence like that.
When I made one ui,
my goal was to recycle it anytime, anywhere, and any number of times when
I put the necessary data in it.
When I made one ui,
my goal was to recycle it anytime, anywhere, and any number of times when
I put the necessary data in it.
2 years ago
#4
I don't really understand what you're trying to do.
Do you know that you can return view content as normal PHP variables?
If you do this, PHP will treat the rendered output like a normal PHP string. You can then 'recycle' this in any way you please.
If I have misunderstood your question and if I continue to miss the mark, please post your question into an AI engine, like Chat GPT, and then paste it in here. I'm really struggling to understand what you're trying to do.
Do you know that you can return view content as normal PHP variables?
If you do this, PHP will treat the rendered output like a normal PHP string. You can then 'recycle' this in any way you please.
If I have misunderstood your question and if I continue to miss the mark, please post your question into an AI engine, like Chat GPT, and then paste it in here. I'm really struggling to understand what you're trying to do.