Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function render($template)
- {
- ob_start();
- foreach ($this->data as $key => $value){
- $$key = $value;
- }
- include $template;
- $html = ob_get_contents();
- ob_end_clean();
- return $html;
- }
- render(__DIR__ . '/../templates/guestBook.php')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement