public function render($name) {
		
		$logger = Logger::getInstance();
		
		$logger->addEvent('Rendering ' . $name . ' widget');
		
		$file = $this->scriptPath . $name .'.php';

		// close buffer and parse file
		ob_start();
		$script = require $file;
		$widget = ob_get_clean();

		return $widget;
		
	}
public function render($name) {
		
		$logger = Logger::getInstance();
		
		$logger->addEvent('Rendering ' . $name . ' widget');
		
		$file = $this->scriptPath . $name .'.php';

		// close buffer and parse file
		ob_start();
		$script = require $file;
		$widget = ob_get_clean();

		return $widget;
		
	}
public function render ( $ name ) { $ logger = Logger :: getInstance ( ) ; $ logger -> addEvent ( 'Rendering ' . $ name . ' widget' ) ; $ file = $ this -> scriptPath . $ name . '.php' ; // close buffer and parse file ob_start ( ) ; $ script = require $ file ; $ widget = ob_get_clean ( ) ; return $ widget ; }
Renders the widget layout and returns it.

@param	string	Name of widget file without file’s extension (.php).
@return	string
Renders the widget layout and returns it .