Rick, this is my post - but I wished to thank you for a wonderful framework!
while coding an app in wee hours of the morning when one of my controllers stopped working, I thought the CI framework had a bug. so I checked the log files and it always stopped at ‘Language Class Initialized’ message - no further messages. Normal controller execution ofcourse has more messages. After reviewing my code and forums and a few hours of sleep and review again, found the culprit. an added ‘,’ during my copy and paste from another controller function. This post is to add to the forum knowledge base and request a bug fix/feature. Symptom is “Controller won’t load, no error messages”.
My question/comment is: shouldn’t the framework at least kick out some syntax/parsing error? I would think these errors should propagate upwards from the loader class. (please correct me if I’m wrong). I’m using 1.5.0.1 of CI. I’m not certain how 1.3.x and 1.4.x versions handled these errors. I’m posting an example below:
The problem is the ‘,’ after ‘3’ in the array. I’ve tested it with missing ‘;’ after a statement as well - same log info.
function index()
{
$numbers = array(
'one' => '1',
'two' => '2',
'three' => '3',
);
$this->load->view('welcome');
}
Based on above code, the log file shows (does not continue past ‘Language Class’:
DEBUG - 2006-11-06 09:10:46 --> Config Class Initialized
DEBUG - 2006-11-06 09:10:46 --> Hooks Class Initialized
DEBUG - 2006-11-06 09:10:46 --> Router Class Initialized
DEBUG - 2006-11-06 09:10:46 --> Output Class Initialized
DEBUG - 2006-11-06 09:10:46 --> Input Class Initialized
DEBUG - 2006-11-06 09:10:46 --> Global POST and COOKIE data sanitized
DEBUG - 2006-11-06 09:10:46 --> URI Class Initialized
DEBUG - 2006-11-06 09:10:46 --> Language Class Initialized
thanks for looking in to this.
