CodeIgniter Forums
Controller functions being called twice, passed "css" second time? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Controller functions being called twice, passed "css" second time? (/thread-20275.html)



Controller functions being called twice, passed "css" second time? - El Forum - 07-04-2009

[eluser]Unknown[/eluser]
While debugging my application I am noticing that my controller functions are getting called twice on page load.

The argument being passed the second time to my function is always the string "css". Because of this I am not getting any data back because the second function call is overwriting my $id parameter and ruining my query.

Anyone have any explanation or ideas about this?


Controller functions being called twice, passed "css" second time? - El Forum - 07-04-2009

[eluser]JoostV[/eluser]
Are you trying to load a css file using a relative link?


Controller functions being called twice, passed "css" second time? - El Forum - 07-04-2009

[eluser]Unknown[/eluser]
Ah, thank you, never thought of that. I think a javascript library I am loading might be.