Jump to content

delboy1978uk

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

delboy1978uk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your reply! I removed the line, and now it goes to the index controller when i dont type an action name :-) however if I type in /add or /edit etc, it still goes to a profile page :-s I'l check out the errata like you said, thanks :-) again, if anyway can shed some light on this i'll be very grateful! all i need is the normal user/add user/edit etc which happens automatically, yet if i type in user/nonaction it would take you to user/viewprofile/nonaction, with nonaction being the users name :-P so only go to the view profile thing if there isnt an existing action in the controller :-)
  2. Hi guys, I'm going through the Apress book "beginning zend framework", and now i'm stuck lol i have various actions for an artist controller, one of which is: http://localhost/artist/new (adds new artist) the book then explains how to enable routing: http://localhost/artist/thebeatles (actually goes to artist/profile action) Here's the routing code: /** Routing Info **/ $FrontController = Zend_Controller_Front::getInstance(); $Router = $FrontController->getRouter(); $Router->addRoute("artistprofile", new Zend_Controller_Router_Route( "artist/:artistname", array ("artistname" => "The Smiths", "controller" => "artist", "action" => "profile" ) )); However, since enabling this routing, even artist/new gets routed to artist/profile! Surely it only routes if the action doesn't exist! The book doesn't even recognise that theres a problem, but then the book is for v1.8, and i have v1.10
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.