Hi David,

In your bootstrap:

$cleanRoute = new Zend_Controller_Router_Route(
   'things/edit/:id',
   array(
       'controller'    => 'things',
       'action'    => 'edit'
   )
);
$router->addRoute('cleanRoute', $cleanRoute);


In your controller:
$id = $this->_getParam('id');

You can find more info about that here:
http://framework.zend.com/manual/en/zend.controller.router.html
(scroll down a bit)

I hope it helps.

cheers,
Johannes

On 6/29/07, David Mintz <[EMAIL PROTECTED]> wrote:

Hey

Just wondering how you recommend implementing even cleaner and more
minimal URLs, e.g., if your action is something like edit or update and
you expect the only GET parameter to be a record id, rather than

example.com/things/edit/id/432

simply: example.com/things/edit/432

I guess you can parse it out of $this->_request->getPathInfo() but there's
got to be a classier way, right?

Thanks

--
David Mintz
http://davidmintz.org/

"Our universe is just one of those things that happens from time to time."

Reply via email to