hi you there!
thanks for using my framework! :) ok, lets begin:
1. To load and use your own library you only have to put it in the "libraries" folder and add the name and folder in the "includes/autoload.php" file, for example:
$classes = array(
'Security' => 'libraries',
'Session' => 'libraries',
'Database' => 'libraries',
'Language' => 'libraries',
'Permission' => 'libraries',
'Integrity' => 'libraries',
'Input' => 'libraries',
'Upload' => 'libraries',
'Url' => 'libraries',
/** CUSTOM **/
'Customclass' => 'libraries', // Case Sensitive!!!
);
You can create a new folder with your custom classes, but by default the system load them from the libraries folder.
Then you can use you class calling it from any controller, model or view using the following sintax:
$this->customclass->custommethodclass(); //all in lowercase
2. You need to configure the database access in the "includes/dbconfig.php" file:
class Dbconfig {
public $driver = 'mysql'; // change this to mssql
public $dbhost = 'localhost';
public $dbuser = 'root';
public $dbpass = 'root';
public $dbname = 'test';
public $prefix = '';
}
only change the $driver property to the driver yo want, check this page:
php.net/manual/es/pdo.drivers.php
3. Good, that piece of code allows to the app to user ALL of the libraries methods in the views, if you delete that code the libraries only were available in the models ands controllers.
I hope I've helped
PD: Sorry for my really bad english :(