The Error:
Fatal error: Swiftlet\App::autoload(): Failed opening required 'Swiftlet/Models/mysqli.php' (include_path='.:/usr/local/lib/php-5.3.13/lib/php') in /hermes/waloraweb009/b1166/htdocs/jim/ss test/Swiftlet/App.php on line 223
I'm new to MVC and trying out Swiftlet. I'm trying to setup a MYSQL database Model.
I've nailed down the error to:
class Database extends \Swiftlet\Model {
public $mysqli;
public function __construct(App $app) {
$this->mysqli = new mysqli($this->app->getConfig('dbHost'),
$this->app->getConfig('dbUser'),
$this->app->getConfig('dbPassword'),
$this->app->getConfig('dbName'));
}
}
But I don't know why. Why would it try to load mysqli?