- 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: 915
Latest pastes
1 days ago
1 days ago
11 months ago
13 months ago
17 months ago