fuel/fuel/core/classes/html.php
public static function img($src, $attr = array())
	{
		if ( ! preg_match('#^(\w+://)# i', $src))
		{
			$src = \Uri::base(false).$src;
		}
		$attr['src'] = $src;
		$attr['alt'] = (isset($attr['alt'])) ? $attr['alt'] : pathinfo($src, PATHINFO_FILENAME);
		return html_tag('img', $attr);
	}
public static function img($src, $attr = array())
	{
		if ( ! preg_match('#^(\w+://)# i', $src))
		{
			$src = \Uri::base(false).$src;
		}
		$attr['src'] = $src;
		$attr['alt'] = (isset($attr['alt'])) ? $attr['alt'] : pathinfo($src, PATHINFO_FILENAME);
		return html_tag('img', $attr);
	}
public static function img ( $ src , $ attr = array ( ) ) { if ( ! preg_match ( '#^(\w+://)# i' , $ src ) ) { $ src = \ Uri :: base ( false ) . $ src ; } $ attr [ 'src' ] = $ src ; $ attr [ 'alt' ] = ( isset ( $ attr [ 'alt' ] ) ) ? $ attr [ 'alt' ] : pathinfo ( $ src , PATHINFO_FILENAME ) ; return html_tag ( 'img' , $ attr ) ; }
Creates an html image tag

Sets the alt atribute to filename of it is not supplied.

@param	string	the source
@param	array	the attributes array
@return	string	the image tag
Creates an html image tag