#1
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.
#2
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.