Exemplo n.º 1
0
 public static function CodeBehind($class, &$control, &$argv)
 {
     // spl_object_hash()
     // argv and argc are reserved in PHP, but this concept is the same.
     $argc = count($argv);
     $application = PHPApplication::sharedApplication();
     require $_SERVER['DOCUMENT_ROOT'] . "/application/controls/" . $class;
     $class = substr($class, 0, strrpos($class, '.'));
     $control = new $class($argc, $argv);
 }