01-17-2009, 11:28 AM
[eluser]nchmura[/eluser]
I have been staring at this all morning and it is killing me.
First off though, I am loving CI. I am currently working on another project using Zend and I hate going back to it
Thanks for a wonderful framework!
So here is my situation: I am having a problem where I can load up a controller and view just fine only as long as it is the default function (index) in the controller. For example, if I try:
http://mysite.com/home (or just http://mysite.com/) - it executes just fine.
If I throw in a controller function like this:
http://mysite.com/home/test
I get a CI "404 Page Not Found" error.
My controller looks like this (stripped it down to nothing troubleshoot):
Unsurprisingly so, my log file looks like this:
I am on developing on Dreamhost and did follow this dreamhost htaccess wiki article.
Last tidbit, my route def cont is set to this: $route['default_controller'] = "home";
To me this is telling me some sort of htaccess problem, I have tried all sorts of things, but I get nothing but bupkis.
Any ideas?
Thanks.
I have been staring at this all morning and it is killing me.
First off though, I am loving CI. I am currently working on another project using Zend and I hate going back to it

So here is my situation: I am having a problem where I can load up a controller and view just fine only as long as it is the default function (index) in the controller. For example, if I try:
http://mysite.com/home (or just http://mysite.com/) - it executes just fine.
If I throw in a controller function like this:
http://mysite.com/home/test
I get a CI "404 Page Not Found" error.
My controller looks like this (stripped it down to nothing troubleshoot):
Code:
class Home extends Controller {
function Home()
{
parent::Controller();
}
function index()
{
$this->load->view('home');
}
function test()
{
$this->load->view('home');
}
}
Unsurprisingly so, my log file looks like this:
Quote:DEBUG - 2009-01-17 09:11:09 --> Config Class Initialized
DEBUG - 2009-01-17 09:11:09 --> Hooks Class Initialized
DEBUG - 2009-01-17 09:11:09 --> URI Class Initialized
ERROR - 2009-01-17 09:11:09 --> 404 Page Not Found --> test
I am on developing on Dreamhost and did follow this dreamhost htaccess wiki article.
Last tidbit, my route def cont is set to this: $route['default_controller'] = "home";
To me this is telling me some sort of htaccess problem, I have tried all sorts of things, but I get nothing but bupkis.
Any ideas?
Thanks.