Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

/mvc/components/error

[return to app]
1 <?php
2
class errorComponent {
3     public function 
log($error null) {
4         
get::model('error')->logError(is_array($error) ? $error : array('error' => $error));
5     }
6 }