| @@ 263-270 (lines=8) @@ | ||
| 260 | $path = ''; |
|
| 261 | ||
| 262 | // Is the model in a sub-folder? If so, parse out the filename and path. |
|
| 263 | if (($last_slash = strrpos($model, '/')) !== FALSE) |
|
| 264 | { |
|
| 265 | // The path is in front of the last slash |
|
| 266 | $path = substr($model, 0, ++$last_slash); |
|
| 267 | ||
| 268 | // And the model name behind it |
|
| 269 | $model = substr($model, $last_slash); |
|
| 270 | } |
|
| 271 | ||
| 272 | if (empty($name)) |
|
| 273 | { |
|
| @@ 1067-1078 (lines=12) @@ | ||
| 1064 | ||
| 1065 | // Was the path included with the class name? |
|
| 1066 | // We look for a slash to determine this |
|
| 1067 | if (($last_slash = strrpos($class, '/')) !== FALSE) |
|
| 1068 | { |
|
| 1069 | // Extract the path |
|
| 1070 | $subdir = substr($class, 0, ++$last_slash); |
|
| 1071 | ||
| 1072 | // Get the filename from the path |
|
| 1073 | $class = substr($class, $last_slash); |
|
| 1074 | } |
|
| 1075 | else |
|
| 1076 | { |
|
| 1077 | $subdir = ''; |
|
| 1078 | } |
|
| 1079 | ||
| 1080 | $class = ucfirst($class); |
|
| 1081 | ||