public static function tags($value, $base_url = FALSE, $separator = ", ")
	{
		$cache_key = md5($value);

		if (Arr::get(self::$_cache, $cache_key))
		{
			return self::$_cache[$cache_key];
		}

		self::$_cache[$cache_key] = array(
			'load'	=> FALSE,
			'tags'	=> array(),
		);

		$base_url = ($base_url) ? $base_url : URL::base(TRUE, TRUE) . 'tag/';

		foreach (explode($separator, $value) as $tag)
		{
			  if ( ! $tag)
			  {
				continue;
			  }

			$tag = array(
				'name'	=> $tag,
				'slug'	=> URL::title($tag, '-', TRUE),
			);
			$tag['url'] = $base_url . $tag['slug'];
			self::$_cache[$cache_key]['tags'][] = $tag;
		}

		if (self::$_cache[$cache_key]['tags'])
		{
			self::$_cache[$cache_key]['load'] = TRUE;
		}

		return self::$_cache[$cache_key];
	}
public static function tags($value, $base_url = FALSE, $separator = ", ")
	{
		$cache_key = md5($value);

		if (Arr::get(self::$_cache, $cache_key))
		{
			return self::$_cache[$cache_key];
		}

		self::$_cache[$cache_key] = array(
			'load'	=> FALSE,
			'tags'	=> array(),
		);

		$base_url = ($base_url) ? $base_url : URL::base(TRUE, TRUE) . 'tag/';

		foreach (explode($separator, $value) as $tag)
		{
			  if ( ! $tag)
			  {
				continue;
			  }

			$tag = array(
				'name'	=> $tag,
				'slug'	=> URL::title($tag, '-', TRUE),
			);
			$tag['url'] = $base_url . $tag['slug'];
			self::$_cache[$cache_key]['tags'][] = $tag;
		}

		if (self::$_cache[$cache_key]['tags'])
		{
			self::$_cache[$cache_key]['load'] = TRUE;
		}

		return self::$_cache[$cache_key];
	}
public static function tags ( $ value , $ base_url = FALSE , $ separator = ", " ) { $ cache_key = md5 ( $ value ) ; if ( Arr :: get ( self :: $ _cache , $ cache_key ) ) { return self :: $ _cache [ $ cache_key ] ; } self :: $ _cache [ $ cache_key ] = array ( 'load' => FALSE , 'tags' => array ( ) , ) ; $ base_url = ( $ base_url ) ? $ base_url : URL :: base ( TRUE , TRUE ) . 'tag/' ; foreach ( explode ( $ separator , $ value ) as $ tag ) { if ( ! $ tag ) { continue ; } $ tag = array ( 'name' => $ tag , 'slug' => URL :: title ( $ tag , '-' , TRUE ) , ) ; $ tag [ 'url' ] = $ base_url . $ tag [ 'slug' ] ; self :: $ _cache [ $ cache_key ] [ 'tags' ] [ ] = $ tag ; } if ( self :: $ _cache [ $ cache_key ] [ 'tags' ] ) { self :: $ _cache [ $ cache_key ] [ 'load' ] = TRUE ; } return self :: $ _cache [ $ cache_key ] ; }
Transform string to array of tags
Elements must be separate by colon and one space `,`

Example :

tags: Choux rouges, Patates

tags = array(
array(
'name'	=> 'Choux rouges'
'slug'	=> 'choux-rouge'
'url'	=> 'http://localhost/tag/choux-rouge'
),
array(
'name'	=> 'Patates'
'slug'	=> 'patate'
'url'	=> 'http://localhost/tag/patate'
),
);


@param	string	String of elements, eg. Patates, Choux rouges, Tomates
@param	mixte	TRUE | NULL | string. Default base url, none or specific base url
@return	array	Array of elements
Transform string to array of tags Elements must be separate by colon and one space