0

次の既知の問題があります。

これは私のコントローラーです:

 <?php
 ob_start();
 if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 class AddScore extends CI_Controller
{
    //Constructor
      function __construct() {
          parent::__construct();
          $this->load->helper ( 'url' );
          $this->load->helper ( 'form' );

      }


      function AddToDatabase()
      {
          $userName=$_GET['userName'];
          $userID=$_GET['userID'];
          $score=$_GET['score'];
          $this->load->model('module/ProductsModel'); 
          $this->UserScoresModule->AddUserScore($userID,$userName,$score); 
          // $data=array('ID' => $_GET['ID'], 'Name' => $_GET['Name']);
          // $this->load->view ( 'SupplierAllProductsView',$data);
      }

}

ここの Stackoverflow の投稿で、ある人が の使用ob_start();を提案したので、コードに追加しましたが、問題は残ります。

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b500/ipg.spaghetticodestudioc/TDDD27/application/controllers/AddScore.php:1)

Filename: core/Common.php

Line Number: 438

私が見逃しているものはありますか?

4

1 に答える 1