Guest User

Untitled

a guest
Apr 26th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public static function newadd($view_template_file) {
  2. if(array_key_exists('view_template_file', self::$vars)) {
  3. throw new Exception("Cannot bind variable called 'view_template_file'");
  4. }
  5. extract(self::$vars);
  6. ob_start();
  7. include($view_template_file);
  8. return ob_get_clean();
  9. }
Add Comment
Please, Sign In to add comment