Welcome Guest, Not a member yet? Register   Sign In
Problem loading LDAP library
#5

[eluser]pegas[/eluser]
Hi,

So my gues is that the error will occur if i don't have the server name setup, so the ldap_connect can actually connect to something ?! (I've enabled the ldap module on my apache waamp server and restarted it)

My question is, how can I catch the error mentioned above, and display something else instead ?

Here is my bogus try to do so (the code dose absolutelly nothing :-) )
Code:
// in my controller
        if (!$this->load->library('ldap')){
            $data['connection'] = lang('login_connection_down_text');
        }
        else
            $data['connection'] = 'We are ok !';
    }

//and in my view
<div id="login_status">&lt;?=$connection?&gt;</div>

Thanks for helping me with this.


Messages In This Thread
Problem loading LDAP library - by El Forum - 08-19-2010, 10:52 AM
Problem loading LDAP library - by El Forum - 08-19-2010, 11:25 AM
Problem loading LDAP library - by El Forum - 08-19-2010, 11:54 AM
Problem loading LDAP library - by El Forum - 08-19-2010, 12:26 PM
Problem loading LDAP library - by El Forum - 03-16-2011, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB