summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2010-03-28 08:07:09 +0200
committerGreg Aker <greg.aker@ellislab.com>2010-03-28 08:07:09 +0200
commitd25e66a1824a70c5a2ebfae69b759c3b8a2d02a6 (patch)
treeda3b7c755a6492d573f3f292e1583ad4e48dd3df
parent6c1294b5c3c98e26eaa6cb5eaa83dd3921a30348 (diff)
Change in the loader and driver docs to force ucfirst() on driver directory names to ensure compatibility on case sensitive file systems.
-rw-r--r--system/core/Loader.php2
-rw-r--r--user_guide/general/creating_drivers.html21
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! -->