Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter PHP Style Guide
#8

[eluser]Natebot[/eluser]
A file validator would be a welcome tool Fuzzy.

Could the validator load the CI config file to get the setting for subclass_prefix and use it to validate the class names and file names found in the libraries directory? In that way the validator is agnostic as to the case of the prefix but it just makes sure the class uses the same case. Maybe this validation behavior can be overridden by a config setting that tells the validator require the subclass_prefix to be capitialized, etc.

Maybe it can even issue a warning if there appears to be a prefix mismatch such as when a class is "FB_Controller extends Controller" and $config['subclass_prefix'] = "My_";


Messages In This Thread
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 10:58 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 11:00 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 11:10 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 11:14 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 11:37 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 11:41 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 11:59 AM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 02:24 PM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 02:36 PM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 05:24 PM
CodeIgniter PHP Style Guide - by El Forum - 05-23-2009, 06:54 PM
CodeIgniter PHP Style Guide - by El Forum - 05-24-2009, 03:23 AM
CodeIgniter PHP Style Guide - by El Forum - 05-24-2009, 03:36 AM
CodeIgniter PHP Style Guide - by El Forum - 07-12-2011, 02:27 AM
CodeIgniter PHP Style Guide - by El Forum - 07-12-2011, 02:32 AM
CodeIgniter PHP Style Guide - by El Forum - 07-12-2011, 02:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB