Blank Controller page when loading view |
Hi, am new to codeigniter and encountered this case while learning. When i try to load the view, my page is blank and no error is displayed even though i have error reporting set to on. I'm using WAMP with PHP version 5.5.12, MYSQL 5.6.17, Apache 2.4.9 and the code am learning with is
MODEL Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <!DOCTYPE html> What is it am doing wrong?
Hi,
You have: PHP Code: $this->load->view('pro_index', $data, TRUE); The 'TRUE' is returning the view as a string, not outputting it to the browser. Just use: PHP Code: $this->load->view('pro_index', $data); http://www.codeigniter.com/user_guide/ge...ing-a-view Hope that helps, Paul. |
Welcome Guest, Not a member yet? Register Sign In |