Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Tutorial Error - Style Guide
#1

(This post was last modified: 08-25-2015, 03:44 AM by Silverblade.)

Hey Guys,

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

http://www.codeigniter.com/user_guide/ge...ile-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
Reply
#2

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB