Yup, I'm a fool! I looked those over probably a dozen times and didn't see anything wrong with them. Guess I'd been working too long.
On Sat, Sep 4, 2010 at 7:11 AM, Matthew Weier O'Phinney <[email protected]>wrote: > -- Lyle Underwood <[email protected]> wrote > (on Friday, 03 September 2010, 05:19 PM -0700): > > As far as I can tell required variables are not in fact required in my > > application. > > > > [default] > > routes.categoryprojectview.route = "projects/view > > /:categoryId/:id" > > routes.categoryprojectview.defaults.controller = "projects" > > routes.categoryprojectview.defaults.action = "view" > > routes.categoryprojectview.defaults.reqs.categoryId = "\d+" > > routes.categoryprojectview.defaults.reqs.id = "\d+" > > > > This seems to match /projects/view/* > > That's because you're not defining them correctly. :) > > For the "reqs" segments, you should not precede the key with "defaults". > Try this instead: > > [default] > routes.categoryprojectview.route = > "projects/view/:categoryId/:id" > routes.categoryprojectview.defaults.controller = "projects" > routes.categoryprojectview.defaults.action = "view" > routes.categoryprojectview.reqs.categoryId = "\d+" > routes.categoryprojectview.reqs.id = "\d+" > > > > I'm doing > > > > $this->getFrontController()->getRouter()->getCurrentRouteName(); > > > > from a controller, and it returns default until I do /projects/view/* and > then > > it returns "categoryprojectview". This is on a HEAD checkout of ZF on a > MAMP > > server. > > -- > Matthew Weier O'Phinney > Project Lead | [email protected] > Zend Framework | http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc >
