Welcome Guest, Not a member yet? Register   Sign In
when I load a model within a controller the link and script tags in the view get embedded within the body tag
#22

[eluser]InsiteFX[/eluser]
Not sure but it could be because your using associative array.

Code:
function index()
{
  $data=array(
  “main_css_template”=>$this->config->item(“global_template”),
      “Javascript_library”=>$this->config->item(“application_main_JS_library_file”),
      “page_title”=>$this->config->item(“Main_Page_title”));
  $this->load->view(“Home/main_page.php”,$data);
}

Do you get the same thing if you do it like this?

Code:
function index()
{
  $data=array();

  $data['main_css_template'] = $this->config->item(“global_template”);
  $data['Javascript_library'] = $this->config->item(“application_main_JS_library_file”);
  $data['page_title'] = $this->config->item(“Main_Page_title”);

  $this->load->view(“Home/main_page.php”,$data);
}

Enjoy
InsiteFX


Messages In This Thread
when I load a model within a controller the link and script tags in the view get embedded within the body tag - by El Forum - 10-07-2009, 01:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB