Views not working in Mamp server instalation!

Juan Coral's Avatar

Juan Coral

08 Aug, 2012 04:10 PM

Hi! I'm new to cakephp. 3 days ago i downloaded the latest version of cakephp and made an instalation so i could folow the "blog" tutorial. My first installation worked fine intill. Everything showed on green in the index page of the root of my cakephp installation. Then I created the "Post.php" file inside the Model folder, and wrote the code indicated by the tutorial. Then Created the "PostsController.php" file and did the same, then created the folder "Posts" inside the "View" folder and inside that "Posts" folder created the file "Index.ctp" file. I got to my browser and tried to access "http://localhost:8888/cakephp/posts" but got the folowing two error messages:
- "Error: The view for PostsController::index() was not found." -"Error: Confirm you have created the file: /Applications/MAMP/htdocs/cakephp/app/View/Posts/index.ctp"

I've already start from the beginning for the fourth time now but can't get past this point. Please help.
Could this be a "mod_rewrite" issue? Could this be an issue do to the operational sistem i use (Mac os)?

I'm attatching a screenshot of the error messages i get with more detailed information here, just in case.

If you want to see more files i could attatch more.

Thanks in advanced,

                      Juan Carlos
  1. 1 Posted by Nicole on 08 Aug, 2012 04:22 PM

    Nicole's Avatar

    Juan -

    Go to http://cakephp.lighthouseapp.com/projects/42648-cakephp/overview and click on the create a new ticket button at the top of the right sidebar. You're still submitting this to the Lighthouse help forum.

    Thanks,
    Nicole

  2. Nicole closed this discussion on 08 Aug, 2012 04:22 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac