Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. public function render($template)
  2.     {
  3.         ob_start();
  4.         foreach ($this->data as $key => $value){
  5.             $$key = $value;
  6.           }
  7.         include $template;
  8.         $html = ob_get_contents();
  9.         ob_end_clean();
  10.         return $html;
  11.     }
  12. render(__DIR__ . '/../templates/guestBook.php')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement