(I'm really hoping I put in enough due dilligence on google and the search bar before posting this)
I'm getting started with CakePHP and just created my first model, controller, and view.
When I browse to http://localhost/~me/MyApp/Lists I get a 404 and I'm not sure why
Here's my controller
<?php
class ListsController extends AppController
{
var $name = 'Lists';
function index()
{
$this->set('lists', $this->List->find('all'));
}
}
?>
I would think it's a .htaccess issue but when I browse to http://localhost/~me/MyApp/app or http://localhost/~me/MyApp/index I get a "Missing Controller" error page. Granted both of these URLs would otherwise point at an actual file or directory.
Can anyone tell me why I would be getting this 404 on my controllers?
Update for a couple comments left below (see the answer by Leo)
My .htacces for the application root
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
My .htaccess for the CakePHP webroot
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>