| @@ 255-262 (lines=8) @@ | ||
| 252 | $path = ''; |
|
| 253 | ||
| 254 | // Is the model in a sub-folder? If so, parse out the filename and path. |
|
| 255 | if (($last_slash = strrpos($model, '/')) !== FALSE) |
|
| 256 | { |
|
| 257 | // The path is in front of the last slash |
|
| 258 | $path = substr($model, 0, ++$last_slash); |
|
| 259 | ||
| 260 | // And the model name behind it |
|
| 261 | $model = substr($model, $last_slash); |
|
| 262 | } |
|
| 263 | ||
| 264 | if (empty($name)) |
|
| 265 | { |
|
| @@ 1019-1030 (lines=12) @@ | ||
| 1016 | ||
| 1017 | // Was the path included with the class name? |
|
| 1018 | // We look for a slash to determine this |
|
| 1019 | if (($last_slash = strrpos($class, '/')) !== FALSE) |
|
| 1020 | { |
|
| 1021 | // Extract the path |
|
| 1022 | $subdir = substr($class, 0, ++$last_slash); |
|
| 1023 | ||
| 1024 | // Get the filename from the path |
|
| 1025 | $class = substr($class, $last_slash); |
|
| 1026 | } |
|
| 1027 | else |
|
| 1028 | { |
|
| 1029 | $subdir = ''; |
|
| 1030 | } |
|
| 1031 | ||
| 1032 | $class = ucfirst($class); |
|
| 1033 | ||