Welcome Guest, Not a member yet? Register   Sign In
Error in parser class
#1

[eluser]ninjawebstudio[/eluser]
Hi! First of all, sorry about my english.

_I´ve got an error when trying to load libraries in config/autoload.php

Quote:Fatal error: Cannot redeclare class ci_parser in /home/ninjaweb/domains/jmlweb.es/public_html/demo/jml/system/libraries/Parser.php on line 27

If I load the libraries in the controller, I don´t get that error.

Here is my code:

CONTROLLER (portada.php)

Code:
<?php

class Portada extends Controller {

    function __construct()
    {
        parent::Controller();
    }
    
    function index()
    {
        $this->load->library('general');
        $data = array(
            'url_base' => site_url()
        );
        $this->parser->parse('portada', $data);
    }
}
?>
#2

[eluser]ninjawebstudio[/eluser]
I´ve copy all the application in my localhost WAMP.

I don´t get that error.




Theme © iAndrew 2016 - Forum software by © MyBB