Урок 2.1. CRUD приложение на Codeigniter. Структура базы данных MySQL
Помогите пожалуйста ! Выходит ошибка!
An uncaught Exception was encountered
Type: ParseError
Message: syntax error, unexpected '(', expecting variable (T_VARIABLE)
Filename: C:\xampp\htdocs\kinomonster\application\controllers\News.php
Line Number: 7
Backtrace:
File: C:\xampp\htdocs\kinomonster\index.php
Line: 315
Function: require_once
Вот мой код
<?php
defined('BASEPATH') OR exit('No direc script access allowed');
class News extends CI_Controller {
public function__construct() {
parent::__construct();
}
public function index() {
$data['title'] = "Все новости";
$this->load->view('templates/header', $data);
$this->load->view('news/index', $data);
$this->load->view('templates/footer');
}
}