Skip to content

Commit

Permalink
Merge pull request #338 from panique/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
panique committed Dec 30, 2013
2 parents f5d2da4 + 11b3542 commit b7fdb1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/libs/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function __construct()
*/
public function loadModel($name)
{
$path = MODELS_PATH . $name . '_model.php';
$path = MODELS_PATH . strtolower($name) . '_model.php';

if (file_exists($path)) {
require MODELS_PATH . $name . '_model.php';
require MODELS_PATH . strtolower($name) . '_model.php';
// The "Model" has a capital letter as this is the second part of the model class name,
// all models have names like "LoginModel"
$modelName = $name . 'Model';
Expand Down

0 comments on commit b7fdb1d

Please sign in to comment.