public function ExpensepdfReport() { require 'models/Revenue_model.php'; $model = new Revenue_model(); //fuel $Expenses = $model->fuelExpenseDetails(); $sum = $model->fuelExpense(); //lubricant $lub_Expenses = $model->lubricantExpenseDetails(); $lub_sum = $model->lubricantExpense(); //other $other_Expenses = $model->otherExpenseDetails(); $other_sum = $model->otherExpense(); //grand total $grandTotal = $model->totalExpense(); include 'views/revenue/report/expense.php'; }