Ejemplo n.º 1
0
 public function __construct()
 {
     $this->_table = DB_PREFIX . 'Users';
     $this->_rows = 'ID, Created, Updated, Username, Email, Password, Firstname, Lastname, Role_ID';
     $this->_colums = array('ID', 'Created', 'Updated', 'Username', 'Email', 'Password', 'Firstname', 'Lastname', 'Role_ID');
     $this->_database = DB::load();
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     $this->_table = DB_PREFIX . 'Uploads';
     $this->_rows = 'ID, Timestamp, Slug';
     $this->_colums = array('ID', 'Timestamp', 'Slug');
     $this->_database = DB::load();
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     $this->_table = DB_PREFIX . 'Categories';
     $this->_database = DB::load();
 }
Ejemplo n.º 4
0
 public function __construct($type)
 {
     $this->_table = DB_PREFIX . 'Post';
     $this->_type = $type;
     $this->_db = DB::load();
 }
Ejemplo n.º 5
0
<?php

/**
 * MVC CMS - an extremely simple naked PHP, MVC, CMS application
 *
 * @package mvc-cms
 * @author thom855j, with inspiration form panique/mini and CodeCourse
 * @link https://github.com/thom855j/mvc-cms/
 * @license http://opensource.org/licenses/MIT MIT License
 */
// boostrap app
require_once 'app/bootstrap.php';
// start the application routing by defining query string "url"
// and absolute path to app controllers.
// We also load the database, to be able to use it just as DB::load()
use thom855j\PHPHttp\Router, thom855j\PHPSql\DB;
DB::load(DB_TYPE, DB_HOST, DB_NAME, DB_USER, DB_PASS);
//DB::load()->query('SELECT * FROM Options');
//foreach ( DB::load()->results() as $option )
//{
//    define($option->Name,$option->Value);
//}
$app = new Router('url', PATH_APP_CONTROLLERS);
var_dump($app);
Ejemplo n.º 6
0
 public function __construct()
 {
     $this->_table = DB_PREFIX . 'Upload_Items';
     $this->_database = DB::load();
 }