I try to create new stdClass but still nothing and this code make an error: Warning: Creating default object from empty value.
function __construct($params) {
parent::__construct($params);
//$this -> view -> controller = null;
$this -> view -> controller = new stdClass(); // <-- HERE IS ERROR
$this -> view -> controller = 'Index';
require_once 'models/_index_model.php';
$this -> model = new Index_model();
$action = 'News';
if(isset($params[1])){ $action = ucfirst($params[1]); }
$this->date = 'Today';
if(isset($params[2])) $this->date = ucfirst($params[2]);
$this->$action($this->date);
}