这不起作用,导致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';
}
这可以按预期工作:
public function getJobById($jobId)
{
$orderDetails = $this->jobModel->getJobById($jobId);
$payments = $this->paymentModel->getAllPaymentsForJobOrder($jobId);
include './order-details.php';
}
我不确定我明白为什么。