Hello World controller example |
I was looking at the Hello World example in the documentation and see there is no ?> at the end. Why would that be?
http://www.codeigniter.com/user_guide/ge...ello-world
That's very common to leave off the ending php closing tag. If there is any whitespace after the closing tags it can cause errors, so it's generally best just to leave it off. PHP doesn't require it, and there really isn't any benefit to having it. Most modern php code leaves it off, not just CI.
http://stackoverflow.com/questions/32193...ng-php-tag
It is becoming very common practice for the web-atisans to leave closing the PHp tags to avoid some errors. Why you have a probz regarding that, its good naa to code less.
Since, CI is for developers to code less/small footprint ![]() (05-23-2015, 05:25 PM)CroNiX Wrote: That's very common to leave off the ending php closing tag. If there is any whitespace after the closing tags it can cause errors, so it's generally best just to leave it off. PHP doesn't require it, and there really isn't any benefit to having it. Most modern php code leaves it off, not just CI. Correct, Also its more secure |
Welcome Guest, Not a member yet? Register Sign In |