CodeIgniter Forums
[SOLVED] Tutorial Error - Style Guide - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: [SOLVED] Tutorial Error - Style Guide (/showthread.php?tid=62749)



[SOLVED] Tutorial Error - Style Guide - Silverblade - 08-21-2015

Hey Guys,

I just thought I'd point out an error on the style guide tutorial here:

http://www.codeigniter.com/user_guide/general/styleguide.html#file-naming

We all know that class files should all be in lower case, However the tutorial states this:

" For example, if you have a class named Myclass, then its filename must be Myclass.php. "

The capital 'M' is incorrect, hopefully either I'm wrong or this will be fixed soon.

Silverblade


RE: Tutorial Error - Style Guide - ciadmin - 08-21-2015

The style guide is correct. The CodeIgniter convention is for class names, and the files containing them, to be UCfirst.
The file Myclass.php should define the class Myclass.