I
I
Ivan Smirnov2018-12-26 20:13:17
CodeIgniter
Ivan Smirnov, 2018-12-26 20:13:17

Why does CodeIgniter output a piece of code?

The code:

<?
defined('BASEPATH') OR exit('No direct script access allowed');

  /**
   *
   */
  class Notfound extends CI_Controller
  {

    private $page = '404';

    function __construct()
    {
      parent::__construct();
    }

    public function index()
    {
      $this->output->set_status_header('404');
      $data['page'] = $this->page;
      $this->load->view('header', $data);
      $this->load->view('404');
      $this->load->view('footer');
    }

  }

Conclusion:
T_fHW7CRCrk.jpg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question