public function fragment($method, array $params=[]) {
		$c = clone $this; #clone to allow nested fragments
		$c->view = null;
		$c->defaultView = $method;
		return $c->runTemplate($method, $params);
	}
public function fragment($method, array $params=[]) {
		$c = clone $this; #clone to allow nested fragments
		$c->view = null;
		$c->defaultView = $method;
		return $c->runTemplate($method, $params);
	}
public function fragment ( $ method , array $ params = [ ] ) { $ c = clone $ this ; #clone to allow nested fragments $ c -> view = null ; $ c -> defaultView = $ method ; return $ c -> runTemplate ( $ method , $ params ) ; }
Render the method of a class.
@param  string $method method name
@param  array  $params   arguments
@return string
Render the method of a class .