Welcome Guest, Not a member yet? Register   Sign In
Array To String error / undefined $query
#5

(08-14-2016, 10:41 AM)Wouter60 Wrote: The error seems to be in your MY_Controller file, which is most likely in your application/core folder.
Please check what it does at line 24.

Code:
class MY_Controller extends CI_Controller
{
 protected $data = array();
 function __construct()
 {
   parent::__construct();
   $this->data['page_title'] = 'SIIGA';
   $this->data['before_head'] = '';
   $this->data['before_body'] ='';
 }

 protected function render($the_view = NULL, $template = 'master')
 {
   if($template == 'json' || $this->input->is_ajax_request())
   {
     header('Content-Type: application/json');
     echo json_encode($this->data);
   }
   else
   {
     $this->data['the_view_content'] = (is_null($the_view)) ? '' : $this->load->view($the_view,$this->data, TRUE);;
     $this->load->view('templates/'.$template.'_view', $this->data);
This is MY_Controller file. Line 24 is //
Code:
     $this->load->view('templates/'.$template.'_view', $this->data);
Reply


Messages In This Thread
RE: Array To String error / undefined $query - by CodinMoldovanu - 08-15-2016, 12:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB