Problem loading custom library

#2
[eluser]Mareshal[/eluser]
try this code. paste it in application/libraries/first.php

Code:
class First{
    function test(){
        echo "first->test";
    }
}

then in your welcome controller: $this->load->library('First');

$this->first->test();

and get back with an answer


Messages In This Thread
Problem loading custom library - by El Forum - 04-13-2010, 11:36 PM
Problem loading custom library - by El Forum - 04-14-2010, 01:12 AM
Problem loading custom library - by El Forum - 04-14-2010, 01:14 AM
Problem loading custom library - by El Forum - 04-14-2010, 01:29 AM
Problem loading custom library - by El Forum - 04-14-2010, 08:28 AM
Problem loading custom library - by El Forum - 04-14-2010, 11:05 PM
Problem loading custom library - by El Forum - 04-15-2010, 07:32 AM
Problem loading custom library - by El Forum - 04-15-2010, 07:54 AM
Problem loading custom library - by El Forum - 04-15-2010, 08:22 AM
Problem loading custom library - by El Forum - 04-15-2010, 10:57 PM
Problem loading custom library - by El Forum - 04-16-2010, 11:45 AM
Problem loading custom library - by El Forum - 05-02-2010, 05:59 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.