function __construct() { parent::__construct(); $this->data = ''; $this->load->model('blog_model'); $this->data['posts'] = this->blog_model->get_all_blogs_and_posts('3'); }
Quote:The code is valid, but it expects the function parameter $inputs to be an array. The "Illegal string offset" warning when using $inputs['type'] means that the function is being passed a string instead of an array.
$this->data = '';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)