Quick summary (Do read the docs!)
www.site.com/
- cake/libs/controllers/pages_controller.php OR CREATE
- app/controllers/pages_controller.php
- PagesController::display()
www.site.com/users/
- app/controllers/users_controller.php
- UsersController::index()
www.site.com/users/login
- app/controllers/users_controller.php
- UsersController::login()
Regarding pages controller never edit files in /cake/.. Override or
extend them. (see docs)
By default you shouldn't need an index.php, you should enable mod
rewrite and allow cakephp to read the urls correctly
Try checking your .htaccess and server config to ensure .htaccess can
be read.
Finally the way it reads the URL
www.site.com/controller/action/param1/param2/param3
And so on, you can have as many parameters as you wish. Also check out
routing for custom urls.
Hopefully your app will work and you can start the blog tutorial to
learn more
Sent from my iPhone
On 22 Feb 2012, at 23:46, amg55nj <[email protected]> wrote:
Completely new to CakePHP. Tried doing a search with no results.
I installed CakePHP to my localhost Apache directory. Other programs
such as PHPMyAdmin work just fine. I am getting this error:
Missing Controller
Error: Index.phpController could not be found.
Error: Create the class Index.phpController below in file: app
\Controller\Index.phpController.php
<?php
class Index.phpController extends AppController {
}
Notice: If you want to customize this error message, create app\View
\Errors\missing_controller.ctp
What do I do? I tried creating that PHP file and putting it in the
app\Controller directory but that did not work.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and
help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this
group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php