[eluser]Razican[/eluser]
Hello, I'm trying to work with JQuery and CodeIgniter 2.0 (latest rev. in repo.) I have logs on, and have noticed that some classes load twice. Moreover, I'm doing an AJAX request and the result changes even if I'm not requesting it. For example, If I request a query, with num_rows() = 1, it starts to blink the 1 after finishing the request. But the main problem is the double loading. I have separated each request for you to see it better.
Code:
DEBUG - 06-12-2010 20:31:40 --> Config Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Hooks Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Unicode Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Unicode Class - UTF-8 Support Enabled
DEBUG - 06-12-2010 20:31:40 --> URI Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Router Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Output Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Input Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Security Class Initialized
DEBUG - 06-12-2010 20:31:40 --> XSS Filtering completed
DEBUG - 06-12-2010 20:31:40 --> XSS Filtering completed
DEBUG - 06-12-2010 20:31:40 --> CRSF cookie Set
DEBUG - 06-12-2010 20:31:40 --> Global POST and COOKIE data sanitized
DEBUG - 06-12-2010 20:31:40 --> Language Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Loader Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Config file loaded: megapublik/config/megapublik.php
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: language_helper
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: form_helper
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: html_helper
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: url_helper
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: cookie_helper
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: overal_helper
DEBUG - 06-12-2010 20:31:40 --> Language file loaded: language/spanish/overal_lang.php
DEBUG - 06-12-2010 20:31:40 --> Database Driver Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Session Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Helper loaded: string_helper
DEBUG - 06-12-2010 20:31:40 --> Encrypt Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Session routines successfully run
DEBUG - 06-12-2010 20:31:40 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:40 --> Controller Class Initialized
Code:
DEBUG - 06-12-2010 20:31:46 --> Config Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Hooks Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Unicode Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Unicode Class - UTF-8 Support Enabled
DEBUG - 06-12-2010 20:31:46 --> URI Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Router Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Output Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Input Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Security Class Initialized
DEBUG - 06-12-2010 20:31:46 --> XSS Filtering completed
DEBUG - 06-12-2010 20:31:46 --> XSS Filtering completed
DEBUG - 06-12-2010 20:31:46 --> CRSF cookie Set
DEBUG - 06-12-2010 20:31:46 --> Global POST and COOKIE data sanitized
DEBUG - 06-12-2010 20:31:46 --> Language Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Loader Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Config file loaded: megapublik/config/megapublik.php
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: language_helper
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: form_helper
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: html_helper
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: url_helper
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: cookie_helper
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: overal_helper
DEBUG - 06-12-2010 20:31:46 --> Language file loaded: language/spanish/overal_lang.php
DEBUG - 06-12-2010 20:31:46 --> Database Driver Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Session Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Helper loaded: string_helper
DEBUG - 06-12-2010 20:31:46 --> Encrypt Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Session routines successfully run
DEBUG - 06-12-2010 20:31:46 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:46 --> Controller Class Initialized
DEBUG - 06-12-2010 20:31:47 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:47 --> File loaded: megapublik/views/registration/result.php
DEBUG - 06-12-2010 20:31:47 --> Final output sent to browser
DEBUG - 06-12-2010 20:31:47 --> Total execution time: 2.0412
DEBUG - 06-12-2010 20:31:48 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:48 --> File loaded: megapublik/views/registration/result.php
DEBUG - 06-12-2010 20:31:48 --> Final output sent to browser
DEBUG - 06-12-2010 20:31:48 --> Total execution time: 2.0402
DEBUG - 06-12-2010 20:31:48 --> Model Class Initialized
DEBUG - 06-12-2010 20:31:48 --> File loaded: megapublik/views/registration/result.php
DEBUG - 06-12-2010 20:31:48 --> Final output sent to browser
DEBUG - 06-12-2010 20:31:48 --> Total execution time: 2.0357
The Model class loads twice, or even more times. On the other hand, the XSS Filtering loads also twice. How can I solve it?