What's new? | Help | Directory | Sign in
Google
wephp
Web.py philosophy brought to PHP.
  
  
  
  
    
Search
for
Updated Aug 11, 2007 by lmatteis
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