An uncaught exception was encountered не могу понять где ошибка?

0
в браузере:
An uncaught Exception was encountered
Type: ParseError
Message: syntax error, unexpected 'function__construct' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Filename: C:\xampp\htdocs\kinomonster\application\controllers\News.php

Line Number: 6
Backtrace:

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


 мой код:
1<?php
2
3 defined('BASEPATH') OR exit('No direct script access allowed');
4
5 class News extends CI_Controller {
6   public function__construct() {
7   parent::__construct();
8  }
9  public function index() {
10	
11		$data['title'] = "все новости";
12
13		$this->load->view('templates/header',$data);
14		$this->load->view('news/index', $data);
15		$this->load->view('templates/footer',$data);
16	}
17 }
php

1 ответов

0

После function пробела нет

public function__construct(){
Sign up or Log in to write an answer