1. Go to this page and download the library: Download rjakes/rjakessimplefm library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
/**
* This model extends the base class and the database connection.
*
**/
namespace Model;
use \Model\BaseModel;
class Language extends BaseModel {
public function __construct()
{
// don't forget to call the parent constructor
// else you will not get your connection object
parent::__construct();
// Set a default layout for this model, this can be overridden as needed.
// The layout is a the default layout that was set in the constructor of this class
$result = $this->fmpConn->select();
return $result;
}
}
/**
* This is a fuelPHP controller, provided just to make the example complete.
* There is nothing here that is specific to RjakesSimpleFM
*/
use \Model\Language;
class Controller_Example extends Controller
{
public $language = FALSE;
public function before()
{
$this->language = new Language(); // grab an instance of the model
}
public function action_index()
{
$results['data']['getLanguage'] = $this->language->getStrings('German');
return Response::forge(View::forge('welcome/index', $results));
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.