[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);
}
}
?>