public function tables()
 {
     $tables = Model::dbObject()->_getTables();
     return $this->view->display('tables', get_defined_vars());
 }
Example #2
0
<?php

require ROW_VENDOR_ROW_PATH . '/database/Adapter.php';
require ROW_VENDOR_ROW_PATH . '/database/adapter/MySQL.php';
require ROW_VENDOR_ROW_PATH . '/database/adapter/MySQLi.php';
use row\database\adapter;
use row\database\Model;
$db = adapter\MySQL::open(array('user' => DB_USER, 'pass' => DB_PASS, 'dbname' => DB_NAME, 'names' => 'utf8'));
if (!$db->connected()) {
    exit('I could not connect to the specified database. Edit <u>app/config/database.php</u> and import <u>app/_project/blog.sql</u> to fix this problem!');
}
//$db->throwExceptions = false; // Will return FALSE instead of throwing exceptions
Model::dbObject($db);
			You're not signed in... (<?php 
echo $this::link($this::translate('sign in', null, array('ucfirst' => false)), 'blog/user/login');
?>
 or <?php 
echo $this::link($this::translate('request account', null, array('ucfirst' => false)), 'blog/user/request-account');
?>
)
		<?endif?>
	</header>

	<?php 
echo $content;
?>

	<pre>
		<?print_r(\row\database\Model::dbObject()->queries)?>
	</pre>

</div>

<div id="overlays"></div>

<script src="<?php 
echo $this::asset('js/all.js');
?>
"></script>
<script>
<?php 
echo $this->section('javascript', true);
?>
if ( msgs = document.querySelector('#messages') ) {