src/core/Output.php
public function setContentType($mimes){
		if (strpos($mimes, '/') === FALSE)
		{
			$extension = ltrim($mimes, '.');

			// Is this extension supported?
			if (isset($this->mimes[$extension]))
			{
				$mime_type =& $this->mimes[$extension];

				if (is_array($mime_type))
				{
					$mime_type = current($mime_type);
				}
			}
		}

		$header = 'Content-Type: '.$mime_type;

		$this->headers[] = array($header, TRUE);

		return $this;
	}
public function setContentType($mimes){
		if (strpos($mimes, '/') === FALSE)
		{
			$extension = ltrim($mimes, '.');

			// Is this extension supported?
			if (isset($this->mimes[$extension]))
			{
				$mime_type =& $this->mimes[$extension];

				if (is_array($mime_type))
				{
					$mime_type = current($mime_type);
				}
			}
		}

		$header = 'Content-Type: '.$mime_type;

		$this->headers[] = array($header, TRUE);

		return $this;
	}
public function setContentType ( $ mimes ) { if ( strpos ( $ mimes , '/' ) === FALSE ) { $ extension = ltrim ( $ mimes , '.' ) ; // Is this extension supported? if ( isset ( $ this -> mimes [ $ extension ] ) ) { $ mime_type = & $ this -> mimes [ $ extension ] ; if ( is_array ( $ mime_type ) ) { $ mime_type = current ( $ mime_type ) ; } } } $ header = 'Content-Type: ' . $ mime_type ; $ this -> headers [ ] = array ( $ header , TRUE ) ; return $ this ; }
set Content Type

@param string (Mimes Type, list mimes type at config/Mimes.php)
@return void
set Content Type