• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Tutorial Error - Style Guide

#1
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.