Location: PHPKode > projects > litephp > litephp-master/comm.php
<?php
function C($c)
{
	$c_f='C/'.$c.'.class.php';
	$c_class='C'.$c;
	if(!file_exists($c_f)) fatal_error('file not found:'.$c_f);
	require_once($c_f);
	if(!class_exists($c_class)) fatal_error('class not found:'.$c_class);
	return new $c_class;
}


function M($m)
{
	$m_f='M/'.$m.'.class.php';
	$m_class='M'.$m;
	if(!file_exists($m_f)) fatal_error('file not found:'.$m_f);
	require_once($m_f);
	if(!class_exists($m_class)) fatal_error('class not found:'.$m_class);
	return new $m_class;
}
Return current item: litephp