<?php/** * Use match result as MVC name */Yaf_Dispatcher::getInstance()->getRouter()->addRoute("name", new Yaf_Route_Regex("#^/product/([^/]+)/([^/])+#i", //match request uri leading "/product"array('controller' => ":name", // route to :name, which is $1 in the match result as controller name), array(1 => "name", // now you can call $request->getParam("name")2 => "id", // to get the first captrue in the match pattern.) ) );?>