public function renderControl($name) {

		// gets control object
		$control = $this->getControl($name);
		
		if ($control) {
			
			// adds common CSS classes to requested control
			if (count($this->controlClasses)) {
				$control->addClass(implode(' ', $this->controlClasses));
			}
			
			print $control->render();
			
		}
		
	}
public function renderControl($name) {

		// gets control object
		$control = $this->getControl($name);
		
		if ($control) {
			
			// adds common CSS classes to requested control
			if (count($this->controlClasses)) {
				$control->addClass(implode(' ', $this->controlClasses));
			}
			
			print $control->render();
			
		}
		
	}
public function renderControl ( $ name ) { // gets control object $ control = $ this -> getControl ( $ name ) ; if ( $ control ) { // adds common CSS classes to requested control if ( count ( $ this -> controlClasses ) ) { $ control -> addClass ( implode ( ' ' , $ this -> controlClasses ) ) ; } print $ control -> render ( ) ; } }
Creates an HTML form control getting its object by its name.

@param	string	HTML name for this control.

@return	string
Creates an HTML form control getting its object by its name .