[eluser]gRoberts[/eluser]
Hey all,
I've been using CI for a number of projects and i've just started on another.
All was going well until I went to create a second controller and noticed that my second controller was being routed to my default controller.
It only seemed to work when I used index.php/controller
config:
Code:
$config['index_page'] = "";
htacces:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
log:
Code:
DEBUG - 2009-03-29 16:55:40 --> Config Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Hooks Class Initialized
DEBUG - 2009-03-29 16:55:40 --> URI Class Initialized
DEBUG - 2009-03-29 16:55:40 --> No URI present. Default controller set.
DEBUG - 2009-03-29 16:55:40 --> Router Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Output Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Input Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Global POST and COOKIE data sanitized
DEBUG - 2009-03-29 16:55:40 --> Language Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Loader Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Helper loaded: url_helper
DEBUG - 2009-03-29 16:55:40 --> Database Driver Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Session Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Helper loaded: string_helper
DEBUG - 2009-03-29 16:55:40 --> Encrypt Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Session routines successfully run
DEBUG - 2009-03-29 16:55:40 --> Controller Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Model Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Model Class Initialized
DEBUG - 2009-03-29 16:55:40 --> Model Class Initialized
DEBUG - 2009-03-29 16:55:40 --> File loaded: /public_html/dev/system/application/views/home.php
DEBUG - 2009-03-29 16:55:40 --> Final output sent to browser
DEBUG - 2009-03-29 16:55:40 --> Total execution time: 0.0411
Can anyone think of why it'd not work?
Cheers
Gavin