public function getDefaultMethod()
 {
     $method = \myFrame\App::getInstance()->getConfig()->app['default_method'];
     if ($method) {
         return strtolower($method);
     }
     return 'index';
 }
예제 #2
0
<?php

error_reporting(E_ALL ^ E_NOTICE);
include '../../myFrame/App.php';
$app = \myFrame\App::getInstance();
$app->setRouter('RPCRouter');
$app->run();