Welcome Guest, Not a member yet? Register   Sign In
Architectural question
#9

[eluser]MpaK69[/eluser]
[quote author="i_am_using_ci" date="1231795781"]I understand OOP and MVC logic,
pubic function __construct() {
if($this->session->userdata('logged_in') != true) {

redirect('admin/login_form');

}

}
[/quote]

show error Smile

Code:
pubic function __construct() {
    if($this->session->userdata('logged_in') != true) {
        show_error('Access denied');
    }
}


Messages In This Thread
Architectural question - by El Forum - 01-12-2009, 06:24 AM
Architectural question - by El Forum - 01-12-2009, 08:25 AM
Architectural question - by El Forum - 01-12-2009, 08:29 AM
Architectural question - by El Forum - 01-12-2009, 08:59 AM
Architectural question - by El Forum - 01-12-2009, 09:18 AM
Architectural question - by El Forum - 01-12-2009, 09:29 AM
Architectural question - by El Forum - 01-12-2009, 09:40 AM
Architectural question - by El Forum - 01-12-2009, 09:51 AM
Architectural question - by El Forum - 01-13-2009, 12:16 AM
Architectural question - by El Forum - 01-13-2009, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB