[eluser]Neclord02[/eluser]
Im trying to put a html page into codeigniter, so here's the issue:
My controler:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Main extends CI_Controller {
public function index()
{
$data = array('title = Welcome to Good Cook');
$this->load->view('Main_view' , $data);
}
}
Then, on the main_view, w/o changing anything into php, I get some data when I try it on my browser; problem is when i try to set lines like these:
Code:
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
into this:
Code:
<link rel="stylesheet" href="<?php echo base_url(); ?>css/reset.css" type="text/css" media="all">
All the information dissapears, dunno why (I obviously got this files into the correct folders already)
Any hints on what I'm doing wrong here?