Various updates
This commit is contained in:
parent
4da0123985
commit
ea7486b4ab
@ -17,7 +17,7 @@ miniMVC is a minimalistic Modular MVC framework, with built-in minifier, and pur
|
||||
|
||||
Eg. `$this . "string"`, `$this->__toString()`, `echo $this`;
|
||||
|
||||
* `__call()` method allows (in PHP 5.3+) the dynamic addition of callable closure objects
|
||||
* `__call()` method allows the dynamic addition of callable closure objects
|
||||
|
||||
Eg. `$this->foo = function($baz){}` is callable as `$this->foo()`, with the current object as the last argument
|
||||
|
||||
@ -25,6 +25,8 @@ miniMVC is a minimalistic Modular MVC framework, with built-in minifier, and pur
|
||||
|
||||
Database class uses [Query](https://github.com/aviat4ion/Query) as a database abstraction layer and query builder.
|
||||
|
||||
Database connections are set in /app/config/db.php
|
||||
|
||||
### File Structure
|
||||
|
||||
* index.php - framework frontend
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div style="position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;">
|
||||
<h4>A Database Error was encountered</h4>
|
||||
|
||||
<p>Code: <?php echo $code ?></p>
|
||||
<p>Driver Code: <?php echo $driver_code ?></p>
|
||||
<p>Message: <?php echo $message ?></p>
|
||||
<p>Code: <?= $code ?></p>
|
||||
<p>Driver Code: <?= $driver_code ?></p>
|
||||
<p>Message: <?= $message ?></p>
|
||||
</div>
|
@ -9,10 +9,10 @@
|
||||
<body>
|
||||
<div class="message error">
|
||||
<?php if(isset($title)) : ?>
|
||||
<h1><?php echo $title ?></h1>
|
||||
<h1><?= $title ?></h1>
|
||||
<?php endif ?>
|
||||
|
||||
<?php echo $message; ?>
|
||||
<?= $message; ?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div style="position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;">
|
||||
<h4>An uncaught exception was thrown.</h4>
|
||||
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Message: <?= $message; ?></p>
|
||||
|
||||
<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
@ -10,10 +10,9 @@
|
||||
|
||||
<?php if(isset($error['file']) && ! stristr($error['file'], SYS_PATH)): ?>
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo str_replace(BASE_PATH, "", $error['file']) ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] /*<br />
|
||||
Args: <pre style="margin-left:15px"><?php echo print_r($error['args'], TRUE) ?></pre> */ ?>
|
||||
File: <?= str_replace(BASE_PATH, "", $error['file']) ?><br />
|
||||
Line: <?= $error['line'] ?><br />
|
||||
Function: <?= $error['function'] ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user