Sindbad~EG File Manager

Current Path : /home/sarayaglobal/.trash/plugins/loco-translate/src/admin/
Upload File :
Current File : /home/sarayaglobal/.trash/plugins/loco-translate/src/admin/ErrorController.php

<?php
/**
 * 
 */
class Loco_admin_ErrorController extends Loco_mvc_AdminController {
    
    
    public function renderError( Exception $e ){
        $this->set('error', Loco_error_Exception::convert($e) );
        return $this->render();
    }


    public function render(){
        $e = $this->get('error') or $e = new Loco_error_Exception('No error set');
        return $this->view( $e->getTemplate() );
    }
    
}



Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists