hi i am facing problem in loading css file.
<?php //if ( ! defined("BASEPATH")) exit("No direct script access allowed");
class Controller2 extends CI_Controller
{
function index()
{
if ($this->input->post('button'))
$this->test();
else
$this->load->view('2');
}
function test()
{
$this->load->view('2');
}
} ?>
when i first call my controller index function it is loading view "2" with proper html and css but when i press a button inside my "2" view my controller is calling another function TEST but this time test is not loading the same view with css.
can anyone solve this?