Welcome Guest, Not a member yet? Register   Sign In
Use Language on Error Handling - show_error()
#7

(This post was last modified: 11-23-2020, 08:15 AM by superior.)

(11-23-2020, 07:59 AM)nicolas33770 Wrote: We can't load helper on /var/www/gml-app/gml_system/core/Security.php, it's not working. :-(

Yes you can, just override this class with a MY_ class.

Would be something like this, did not test this so feel free to improve
PHP Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');

class 
MY_Security extends CI_Security
{
    public function 
__get($instance) {
        return 
get_instance()->$instance;
    }

    public function 
csrf_show_error() {
        
$this->load->helper('language');
        
$this->lang->load('gml_general''french');

        
show_errorlang'message_error_403' ), 403 );
    }

Reply


Messages In This Thread
RE: Use Language on Error Handling - show_error() - by superior - 11-23-2020, 08:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB