Welcome Guest, Not a member yet? Register   Sign In
Got a problem.
#1

[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?


Messages In This Thread
Got a problem. - by El Forum - 08-23-2012, 11:02 AM
Got a problem. - by El Forum - 08-23-2012, 11:15 AM
Got a problem. - by El Forum - 08-23-2012, 11:28 AM
Got a problem. - by El Forum - 08-23-2012, 11:33 AM
Got a problem. - by El Forum - 08-23-2012, 11:36 AM
Got a problem. - by El Forum - 08-23-2012, 11:42 AM
Got a problem. - by El Forum - 08-23-2012, 11:44 AM
Got a problem. - by El Forum - 08-23-2012, 12:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB