A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

// Controler voorbeeld....


//CI_ is nieuw... ipv alleen Controller
class Welcome extends CI_Controller {


    public function 
index()
    {
        
// hier komt de code...
        //echo 'Voorbeeld: Hello World!';
        
        // variabele array
        
$data['titel'] = "Mijn titel";
        
$data['kop'] = "Kop: wat te doen?";
        
$data['todo'] = array ('schoonmaken','lunchen','huiswerk');
        
        
//$this->load->view('welcome_message');
        
        // View module laden...
        //$this->load->view('welcome_view');
        
$this->load->view('welcome_view'$data);
    }
}


show_source(__FILE__);

?>
<a href="http://codeigniter.com" />Website Framework CodeIgniter</a>
Website Framework CodeIgniter

A PHP Error was encountered

Severity: Notice

Message: Only variables should be assigned by reference

Filename: core/Loader.php

Line Number: 150

Mijn titel

Kop: wat te doen?

  1. schoonmaken
  2. lunchen
  3. huiswerk
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?=$titel?></title>
    </head>
<body>

<h1><?=$kop?></h1>

<ol>
<?php foreach($todo as $item): ?>
<li><?=$item?></li>
<? endforeach; ?>
</ol>

</body>
</html>

<?
// Voorbeeld view...
show_source(__FILE__);
?>