private static function getMethod() { if (empty($_GET['m'])) { $method = 'index'; $param = array(); } else { $param = explode('/', $_GET['m']); $method = self::$method = array_shift($param); preg_match('~^[a-z0-9]+$~i', $method) or trigger_error('url:m', E_USER_ERROR); } if (input::isPost()) { $method .= '_post'; } else { $method .= '_get'; } return array($method, $param); }