public function actionIndex() { XenForo_Application::autoload('Shorten_URL'); $methods = Shorten_URL::availableMethods(); $methodDetails = array(); $url = $this->_input->filterSingle('url', XenForo_Input::STRING); if (empty($url)) { $url = "http://google.com/"; } foreach ($methods as $method) { $class = 'Shorten_URL_' . $method; XenForo_Application::autoload($class); $methodDetails[$method] = call_user_func(array($class, 'about')); } return $this->responseView('XenForo_ViewAdmin_Sutest_Method_List', 'sutest_method_list', array('methods' => $methodDetails, 'url' => $url)); }