R
ragtek
Guest
Which php version are you using?
Already php5.3 or 5.2 ?
We made the decision to use the new features of php 5.3 for our add-ons, because it makes development "faster & easier"
for example
get_called_class()
But i think that this will result in an big "problem" for many users, because they will not be able to use these add-ons.
Already php5.3 or 5.2 ?
We made the decision to use the new features of php 5.3 for our add-ons, because it makes development "faster & easier"
for example
get_called_class()
PHP:
abstract class Ragtek_Helper_Abstract{
static private $instances = array();
public static function getInstance(){
$class = get_called_class();
if (empty(self::$instances[$class]))
{
self::$instances[$class] = new $class;
}
return self::$instances[$class];
}
}