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
#21

[eluser]midooh[/eluser]
NVM its been fixed forever
#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
#23

[eluser]midooh[/eluser]
The problem was from a config file i ve created when i removed that file everything got back to normal
#24

[eluser]midooh[/eluser]
When I use ansi encoding for the config doc i create it works well but when i use utf8 the problem comes back
ist true that I cant use utf8 for config files?
#25

[eluser]InsiteFX[/eluser]
That sounds very strange to me, becaus I use utf8 for everything I write and I have never had any problems with it.

You may think it's encoded in utf8 but then it may not be. It could be your edit not using utf8 etc.

Like I said above, I use utf8 for all of config files with no problems I also use utf8_unicode_ci for all my databases with no problems.

Also your file is wrong in the autoload.php it should be all lowercase!

Enjoy
InsiteFX
#26

[eluser]midooh[/eluser]
I'm using the notepad when i save the file i chnage to utf8 i ve done many times before evrything works file with utf8 except the config files .For the data base i use utf8_unicode_ci and it works good

$autoload['config'] = array("application_global_settings");

even when I change the original config file to utf8 i get the same result
I"m using json for configs now as i ve to get the job done before the deadline




Theme © iAndrew 2016 - Forum software by © MyBB