Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function newadd($view_template_file) {
- if(array_key_exists('view_template_file', self::$vars)) {
- throw new Exception("Cannot bind variable called 'view_template_file'");
- }
- extract(self::$vars);
- ob_start();
- include($view_template_file);
- return ob_get_clean();
- }
Add Comment
Please, Sign In to add comment