This doesn't work, results in undefined variables in order-details.php
public function getJobById($jobId)
{
    $orderDetails = $this->jobModel->getJobById($jobId);
    $payments = $this->paymentModel->getAllPaymentsForJobOrder($jobId);
    $this->loadOrderDetailsPage();
}
public function loadOrderDetailsPage()
{
    include './order-details.php';
}
This works as expected:
public function getJobById($jobId)
{
    $orderDetails = $this->jobModel->getJobById($jobId);
    $payments = $this->paymentModel->getAllPaymentsForJobOrder($jobId);
    include './order-details.php';
}
I'm not sure I understand why.
