
Im so glad i deal with this all day instead of having to deal with people *like you*

Code:
if ($arrArgs)
{
$objArgs = new Framework_Arguments ();
foreach ($arrArgs as $strKey => $mixVal)
{
$objArgs->$strKey = $mixVal;
}
if (method_exists ($strClassName, 'singleton'))
{
$strSingleton = '$obj = ' . $strClassName . '::singleton ($objArgs);';
eval ($strSingleton);
}
else
{
$obj = new $strClassName ($objArgs);
}
}
else
{
if (method_exists ($strClassName, 'singleton'))
{
$strSingleton = '$obj = ' . $strClassName . '::singleton ();';
eval ($strSingleton);
}
else
{
$obj = new $strClassName;
}
}




(not me but a friend does. poor basserd)

Comment