ElbertF/Swiftlet — Issue #37: details
Author: va5ja
Created: 2012-02-17 20:12:21+00:00
State: open

So I see there's some extra stuff in the code...

In `\Swiftlet\App.php` every model is instantiated with 3 arguments.

```php
public function getModel($modelName)
{
$modelName = 'Swiftlet\Models\\' . ucfirst($modelName);

// Instantiate the model
return new $modelName($this, $this->view, $this->controller);
}
```

But the `\Swiftlet\Model.php` has only one argument in definition. Comment is written for three.

```php
/**
* Constructor
* @param object $app
* @param object $view
* @param object $controller
*/
public function __construct(Interfaces\App $app)
{
$this->app = $app;
}
```

`\Swiftlet\Interfaces\Model.php` has also just one argument defined.