Platinum Partner

Using Module_parse Like Module_view In Code Igniter Using Matchbox

// Updating Matchbox for use Parser as the same easy way to use module_view
//
// I only made a extension as copy paste from original parse method


load->module_view($module, $template, $data, TRUE);
		
		if ($template == '')
		{
			return FALSE;
		}
		
		foreach ($data as $key => $val)
		{
			if (is_array($val))
			{
				$template = $this->_parse_pair($key, $val, $template);		
			}
			else
			{
				$template = $this->_parse_single($key, (string)$val, $template);
			}
		}
		
		if ($return == FALSE)
		{
			$CI->output->append_output($template);
		}
		
		return $template;
	}
}
// END Parser Class

/* End of file MY_Parser.php */
/* Location: ./system/libraries/application/MY_Parser.php */

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}