public function loadNoOfPumps() { require 'models/Stocks_model.php'; $model = new Stocks_model(); echo json_encode($model->loadNoOfPumps()); }