I'm trying to load a view from my controller using Codeigniter.I made the index page a form then submits it to a different controller. It should show the view after some condition statements but when the view loads the usual CSS has been changed.
Original
body {
background-image: url("/images/layouts/body-bg.gif");
background-repeat: repeat;
font-family: "Montserrat", Arial,sans-serif;
color: #404041;
line-height: 18px;
font-size: 12px;
font-size: 0.75rem;
text-shadow: 0 0 1px rgba(64, 64, 65, 0.2);
}
The css being loaded
<!DOCTYPE html>
<html lang="en">
<head>
<title>404 Page Not Found</title>
<style type="text/css">
::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }
I have no idea why this is happening, the way I load my view in my controller is:
if(//condition)
{
$this->load->view('view_2');
}
Is there a way to stop my css from loading with the html error? I am using Codeigniter 2.1.4 with default settings.