diff options
-rw-r--r-- | system/core/Loader.php | 2 | ||||
-rw-r--r-- | user_guide/general/creating_drivers.html | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 976823f81..292fdc955 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -506,7 +506,7 @@ class CI_Loader { // and typically identically named to the library if ( ! strpos($library, '/')) { - $library = $library.'/'.$library; + $library = ucfirst($library).'/'.$library; } return $this->library($library, $params, $object_name); diff --git a/user_guide/general/creating_drivers.html b/user_guide/general/creating_drivers.html index 83bec8c5d..1f213db47 100644 --- a/user_guide/general/creating_drivers.html +++ b/user_guide/general/creating_drivers.html @@ -57,6 +57,27 @@ Creating Drivers <h1>Creating Drivers</h1> +<h2>Driver Directory and File Structure</h2> + +<p>Sample driver directory and file structure layout:</p> + +<ul> + <li>/application/libraries/Driver_name + <ul> + <li>Driver_name.php</li> + <li>drivers + <ul> + <li>Driver_name_subclass_1.php</li> + <li>Driver_name_subclass_2.php</li> + <li>Driver_name_subclass_3.php</li> + </ul> + </li> + </ul> + </li> +</ul> + +<p class="important"><strong>NOTE:</strong> In order to maintain compatibility on case-sensitive file systems, the <samp>Driver_name</samp> directory must be <var>ucfirst()</var></p> + <!-- @todo write this! --> |