Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add framework codeigniter 3 HMVC? #69

Open
CanD62 opened this issue May 12, 2023 · 0 comments
Open

How to add framework codeigniter 3 HMVC? #69

CanD62 opened this issue May 12, 2023 · 0 comments

Comments

@CanD62
Copy link

CanD62 commented May 12, 2023

i use codeigniter 3 HMVC, and show error in browser =>> This site can’t be reached

my code in controller


defined('BASEPATH') OR exit('No direct script access allowed');
    use PDFMerger\PDFMerger;
    require_once APPPATH . "libraries/PDFMerger.php";
class Cetak_PDF extends MY_Controller {

public function combie_pdf()
    {
$pdf = new PDFMerger();

$pdf->addPDF('D:/htdocs/myproject/assets/doc1.pdf', 'all');
$pdf->addPDF('D:/htdocs/myproject/assets/doc2.pdf', 'all');
$pdf->merge('browser', 'TEST2.pdf');
}

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant