View file vtposter/app/modules/payment_history/controllers/payment_history.php

File size: 497B
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
 
class payment_history extends MX_Controller {

	public function __construct(){
		parent::__construct();
		$this->load->model(get_class($this).'_model', 'model');
		permission_view(true);
		if(hashcheck()){
			redirect(PATH);
		}
	}

	public function index(){
		$data = array(
			"result" => $this->model->getPaymentHistory()
		);
		$this->template->title(l('Payment history'));
		$this->template->build('index', $data);
	}

}