Welcome Guest, Not a member yet? Register   Sign In
[solved]Controller gets loaded twice and I do not know why
#1

[eluser]xare[/eluser]
In order to see the first page on the www.domain.tld address I have created an index.php controller file. The class is called Index and the views are called from the default Index() function defined in that class where I run the code that generates the content and call the views that will be shown on the first view.

In other words, I am loading the page from the default controller's constructor.

The result of this is that the controller gets called twice and I find it easy to find why.

I have found somebody had a simmilar problem to mine but he gave no way to resolve this problem

http://ellislab.com/forums/viewthread/156468/

My log file says the following

DEBUG - 2010-09-06 12:06:22 --> Config Class Initialized
DEBUG - 2010-09-06 12:06:22 --> Hooks Class Initialized
DEBUG - 2010-09-06 12:06:22 --> URI Class Initialized
DEBUG - 2010-09-06 12:06:22 --> No URI present. Default controller set.
DEBUG - 2010-09-06 12:06:22 --> Router Class Initialized
DEBUG - 2010-09-06 12:06:22 --> Output Class Initialized
DEBUG - 2010-09-06 12:06:22 --> Input Class Initialized
DEBUG - 2010-09-06 12:06:22 --> Global POST and COOKIE data sanitized
DEBUG - 2010-09-06 12:06:22 --> Language Class Initialized
DEBUG - 2010-09-06 12:06:22 --> Loader Class Initialized
DEBUG - 2010-09-06 12:06:22 --> Controller Class Initialized
DEBUG - 2010-09-06 12:06:22 --> URI:
DEBUG - 2010-09-06 12:06:22 --> Helper loaded: url_helper
DEBUG - 2010-09-06 12:06:22 --> Language file loaded: language/english/main_lang.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/head.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/menu.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/header.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/index.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/footer.php
DEBUG - 2010-09-06 12:06:22 --> Controller Class Initialized
DEBUG - 2010-09-06 12:06:22 --> URI:
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/head.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/menu.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/header.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/index.php
DEBUG - 2010-09-06 12:06:22 --> File loaded: /hiddenpath/system/application/views/footer.php
DEBUG - 2010-09-06 12:06:22 --> Final output sent to browser
DEBUG - 2010-09-06 12:06:22 --> Total execution time: 0.0202


Messages In This Thread
[solved]Controller gets loaded twice and I do not know why - by El Forum - 09-06-2010, 03:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB