SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot mdavis1982's Avatar
    Join Date
    Mar 2004
    Location
    Stoke-on-Trent
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend Framework Controller Problem

    Hi all...

    I've uploaded a copy of my code to http://www.mattdavis.co.uk/playthedrums.zip

    I'm really trying to do a project using Zend Framework but I've run across quite a few problems.

    My main problem is that it doesn't matter where I go to in the URL, the only controller and action that gets exectuted is the Index->IndexAction.

    The noRouteAction never gets called, and I've added another controller called User controller which I also can't get executed.

    I'm running the site for development purposes from my Users/matt/Sites folder on Mac OS X, but I'm not sure that that is the problem.

    Any help would be greatly appreciated as I like the framework and think it will make life easier, as long as I can get this one problem sorted out!

    Thanks in advance,

    Matt

  2. #2
    SitePoint Zealot mdavis1982's Avatar
    Join Date
    Mar 2004
    Location
    Stoke-on-Trent
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow... I thought I would have received at least one reply by now!

    Please help if you can guys... I need to get this site up and running!

    Thanks,

    Matt

  3. #3
    SitePoint Evangelist
    Join Date
    May 2004
    Location
    Germany
    Posts
    550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your index.php you must set the rewriteBase for the router:
    PHP Code:
    $router = new Zend_Controller_RewriteRouter();
    $router->setRewriteBase('/~matt/playthedrums'); 

  4. #4
    PEACE WILL WIN abalfazl's Avatar
    Join Date
    Feb 2005
    Location
    Beyond the seas there is a town
    Posts
    711
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello firends

    As I see you worked with zend framework,Do you know good tutorial for that?

    GOOD LUCK!
    I shall build a boat,I shall cast it in the water,
    I shall sail away from this strange earth,
    Where no one awaken the heroes in the wood of love

  5. #5
    SitePoint Zealot mdavis1982's Avatar
    Join Date
    Mar 2004
    Location
    Stoke-on-Trent
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent!

    That worked a treat! Thanks!

    Matt


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
  •