*/ class hello extends core { /** * 默认首页 */ public static final function index() { core::view(__CLASS__ . '/' . __FUNCTION__ . '.tpl'); } /** * hello world */ public static final function world() { core::view(__CLASS__ . '/' . __FUNCTION__ . '.tpl', array('world' => $_GET['do'])); } /** * hello coremvc */ public static final function coremvc() { $list = self::selects('SELECT ? AS c1,? AS c2', array('hello', 'CoreMVC'), true); echo $list[0]->c1 . ' ' . $list[0]->c2 . '!'; } } /** * 执行(execute) */ hello::stub() and hello::main();