lundi 7 septembre 2020

hello, please help I have an errors

An uncaught Exception was encountered Type: ParseError

Message: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING)

Filename: C:\xampp\htdocs\tokoonline\application\controllers\dashboard.php

Line Number: 3

Backtrace:

File: C:\xampp\htdocs\tokoonline\index.php Line: 315 Function: require_once

<?php 

    class function extends CI_Controller{

            public function index()
            {
                $data['barang'] = $this->model_barang->tampil_data()->result();
                
                $this->load->view('templates/header');
                $this->load->view('templates/sidebar');
                $this->load->view('dashboard', $data);
                $this->load->view('templates/footer');
            }

            
    }



 ?>





Aucun commentaire:

Enregistrer un commentaire