|
|
Template
In wephp templates are treated as regular PHP files, you can run PHP code in them. We are going to go through on how to pass info to the actual template.
Render
echo web::render('index.php');It is set to fetch the file from the templates directory.
To pass information to the template:
$info['text'] = "This is text";
echo web::render('index.php', $info);And in the template
You are right, <?=$text?>
Sign in to add a comment
