PHP code example of sujanhbg / esapp
1. Go to this page and download the library: Download sujanhbg/esapp 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/ */
sujanhbg / esapp example snippets
$db['driver'] = "mysqli";
$db['host'] = "localhost";
$db['user'] = "root";
$db['password'] = "";
$db['database'] = "databasename";
use kring\core\Controller;
class Home extends Controller {
private $model;
public $adminarea;
function __construct() {
parent::__construct();
$this->adminarea = 0;
$this->model = $this->loadmodel('home');
}
function index($pr) {
//its need to be call from database which is defined by user
$data['title'] = "BDEnglish4Exam";
$data['metadesc'] = "BDEnglish4Exam provides Bangladeshi(BD) learners, examinees and teachers of English with perfect model tests for both academic and competitive exams.";
$data['leveldata'] = $this->model->get_leveldata();
$this->tg('home/dashboard.html', $data);
}
}