- private function
- partial
- ($source = null, array $data = array())
- {
- global $TEMPLATE;
- if(is_file($src = BEYOND_ROOT.'inc/templates/'.$TEMPLATE->template.'/partials/'.$source))
- {
- if(is_array($data)) foreach($data as $k => $v) $this->$k = $v;
- ob_start();
- require $src;
- $_partial = ob_get_contents();
- ob_end_clean();
- return $_partial;
- }
- }
Undefined
By: partials | Date: Nov 19 2009 09:05 | Format: None | Expires: never | Size: 606 B | Hits: 946
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago