Results 1 to 2 of 2

Thread: cake php action not working

  1. #1
    Join Date
    Sep 2009
    Location
    pakistan
    Posts
    28
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Unhappy cake php action not working

    i have just started working with cake php i have 3 pages
    posts.php (model)
    posts_controller.php (action's name is hello)
    hello.ctp

    but when i write the url
    http://localhost/cakephp_blog/posts/hello

    its gives me the error that url not found

    in hello.ctp i have just write <h2>Some text</h2>

    can anyone help me why i am getting this error i have also tried some changes in httpd.conf

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    This isn't a PHP problem, this is a configuration issue. Try adding a RewriteRule in .htaccess to redirect http://localhost/cakephp_blog/posts/hello to wherever hello.ctp is located at.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •