Welcome Guest, Not a member yet? Register   Sign In
Code Igniter and CamelCase naming
#8

[eluser]Unknown[/eluser]
If you're not a fan of CodeIgniter naming convention tyranny and want to use CamelCase file names do this

1. Make a file called path/to/app/application/core/My_Loader.php
2. In the file make a class like this

class My_Loader extends CI_Loader
{

}

3. Find the CI_Loader class in path/to/app/system/core/Loader.php
4. Copy method 'public function model'
5. Paste it into My_Loader
6. Delete the the line '$model = strtolower($model);' and the line '$model = ucfirst($model);'

Shazam!


Messages In This Thread
Code Igniter and CamelCase naming - by El Forum - 03-22-2009, 03:59 PM
Code Igniter and CamelCase naming - by El Forum - 03-22-2009, 04:49 PM
Code Igniter and CamelCase naming - by El Forum - 03-23-2009, 01:21 AM
Code Igniter and CamelCase naming - by El Forum - 03-23-2009, 05:34 AM
Code Igniter and CamelCase naming - by El Forum - 03-23-2009, 07:00 AM
Code Igniter and CamelCase naming - by El Forum - 03-23-2009, 08:35 AM
Code Igniter and CamelCase naming - by El Forum - 03-23-2009, 09:21 AM
Code Igniter and CamelCase naming - by El Forum - 04-19-2013, 08:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB