| @@ 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 | { |
|
| @@ 1034-1045 (lines=12) @@ | ||
| 1031 | ||
| 1032 | // Was the path included with the class name? |
|
| 1033 | // We look for a slash to determine this |
|
| 1034 | if (($last_slash = strrpos($class, '/')) !== FALSE) |
|
| 1035 | { |
|
| 1036 | // Extract the path |
|
| 1037 | $subdir = substr($class, 0, ++$last_slash); |
|
| 1038 | ||
| 1039 | // Get the filename from the path |
|
| 1040 | $class = substr($class, $last_slash); |
|
| 1041 | } |
|
| 1042 | else |
|
| 1043 | { |
|
| 1044 | $subdir = ''; |
|
| 1045 | } |
|
| 1046 | ||
| 1047 | $class = ucfirst($class); |
|
| 1048 | ||