Welcome Guest, Not a member yet? Register   Sign In
[Solved] Not load library in server, only in my notebook (localhost)
#1

[eluser]Patrick Maciel | @p4designer[/eluser]
Hi everbody.
(Sorry about my english, I'm brazilian)

I have a little problem.

Autoload:
Code:
$autoload['libraries'] = array('currentmenu');


Library (CurrentMenu) - directory: libraries/CurrentMenu.php.
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class CI_CurrentMenu {
    
    function seAtual($body_id, $body_id_atual, $classe) {
        if( $body_id == $body_id_atual ) {
            echo $classe;
        }
    }
    
}

?>
I try too rename class to only CurrentMenu not CI_CurrentMenu, but, not sucess.


Here, I call/load the library:
Code:
function index() {
     $this->currentmenu->seAtual("home", "home", "current");            
}

But, appear this message (only in server, not in my notebook [localhost]):
Code:
An Error Was Encountered
Unable to load the requested class: currentmenu



What's the problem? I no have idea :-S
Help me please!


So... thanks so much Smile


Messages In This Thread
[Solved] Not load library in server, only in my notebook (localhost) - by El Forum - 12-12-2010, 07:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB