Quick summary (Do read the docs!)
- cake/libs/controllers/pages_controller.php OR CREATE
- app/controllers/pages_controller.php
- PagesController::display()
- app/controllers/users_controller.php
- UsersController::index()
- 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
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
Sent from my iPhone
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment