controller function is being called two times |
[eluser]techpundits[/eluser]
hello... i am new to code igniter forums and getting this problem. my controller is called two times. while debugging my code i placed exit at the last line of my controller. i.e. after loading view. but i was unable to see my view. any help? thanks..
[eluser]nicholas.byfleet[/eluser]
Please post your code so that I can help you diagnose the problem. Cheers.
[eluser]techpundits[/eluser]
Code: if($this->uri->segment(3)!=0) actually when i use this code viewcount increases two times. model function is not executing twice. and i tried exit after loading view suspecting whether controller is loaded twice. to my astonishment nothing can be seen in the browser other than some print_r things. thanks for your help.
[eluser]techpundits[/eluser]
this is the detailed code.. Code: function index(){
[eluser]jegbagus[/eluser]
there is a bug when you use mozzila firefox. i don't know if this bug has been resolved or not yet. in my experience, when mozilla firefox can't find one of your image / ico or another object, they will send another request (actually became double request).
[eluser]techpundits[/eluser]
thnx. and please tell me how can i trace the error? any add ons for that? and whats the error?
[eluser]jegbagus[/eluser]
set debug threshold at your CI become highest, and open it with bare tail. and you will see, that your browser request the page twice...
[eluser]techpundits[/eluser]
thnx for reply. but the page is not loading twice.i saw log file with debugging turned to 4.
[eluser]emorling[/eluser]
I am having the same problem, but this is not just in Firefox and does not involve any icons. See here: http://ellislab.com/forums/viewthread/112904/P660/ |
Welcome Guest, Not a member yet? Register Sign In |