public function index() { $post = array('alert' => ''); Model::load('admincp/paymentmethods'); if ($match = Uri::match('\\/paymentmethods\\/(\\w+)')) { if (method_exists("controlPaymentmethods", $match[1])) { $method = $match[1]; $this->{$method}(); die; } } $curPage = 0; if ($match = Uri::match('\\/page\\/(\\d+)')) { $curPage = $match[1]; } $post['theList'] = Paymentmethods::getDirs(); System::setTitle('Paymentmethods list - ' . ADMINCP_TITLE); View::make('admincp/head'); self::makeContents('paymentmethodsList', $post); View::make('admincp/footer'); }