Getting parse error but can't figure out why. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Getting parse error but can't figure out why. (/showthread.php?tid=45826) |
Getting parse error but can't figure out why. - El Forum - 10-07-2011 [eluser]iamzvonko[/eluser] Hello, I'm new to CI so please be patient with me. I'm adding a new page to an existing site basically by copying existing model, view and controller files. When I try to run the page I get this: Parse error: syntax error, unexpected T_STRING in /.../application/models/resource_model.php on line 1 The ... are mine so as not to show the real path. Anyway, I can't see what's wrong. Originally, there was no "?>" in the code so I added that to end. No luck. I've pasted the code in some PHP syntax checking sites and they say there are no syntax errors. Maybe all I need is a 2nd pair of eyes. Can anyone see what's wrong with this? Any help would be greatly appreciated. Here's the code: Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |