public function import() { $post = array('alert' => ''); if (Request::has('btnSend')) { try { Paymentmethods::import(); $post['alert'] = '<div class="alert alert-success">Import payment method success.</div>'; } catch (Exception $e) { $post['alert'] = '<div class="alert alert-warning">' . $e->getMessage() . '</div>'; } } View::make('admincp/head', array('title' => 'Import payment method - ' . ADMINCP_TITLE)); self::makeContents('paymentmethodImport', $post); View::make('admincp/footer'); }