add templat dir

This commit is contained in:
Ibnu Maksum 2022-09-19 16:57:09 +07:00
parent 3ff2e31ccf
commit e7e32475cc
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
5 changed files with 11 additions and 5 deletions

8
.gitignore vendored
View file

@ -6,10 +6,14 @@ ui/cache/*.php
test.php
pages/
system/cache/**
system/plugin/**
system/plugin/*
!system/cache/index.html
!system/plugin/index.html
system/paymentgateway/ui/**
system/paymentgateway/**
!system/paymentgateway/ui/
!system/paymentgateway/ui/index.html
!system/paymentgateway/index.html
!system/paymentgateway/index.html
!system/plugin/ui/
system/plugin/ui/*
!system/plugin/ui/index.html

View file

@ -16,9 +16,9 @@
## Payment Gateway
- Tripay.com | Indonesia
- Xendit.com | Indonesia and Philippine ( Philippine not tested )
- Duitku.com | Indonesia
- [Tripay.com](https://github.com/hotspotbilling/phpmixbill-tripay) | Indonesia
- [Xendit.com](https://github.com/hotspotbilling/phpmixbill-xendit) | Indonesia and Philippine ( Philippine not tested )
- [Duitku.com](https://github.com/hotspotbilling/phpmixbill-duitku) | Indonesia
## Installation
- Rename **pages_template** to **pages**

View file

@ -121,6 +121,8 @@ $lan_file = 'system/lan/' . $config['language'] . '/common.lan.php';
require($lan_file);
$ui = new Smarty();
$ui->setTemplateDir('ui/ui/');
$ui->addTemplateDir('system/paymentgateway/ui/', 'pg');
$ui->addTemplateDir('system/plugin/ui/', 'plugin');
$ui->setCompileDir('ui/compiled/');
$ui->setConfigDir('ui/conf/');
$ui->setCacheDir('ui/cache/');

View file

View file