我正在为我正在学习php的项目编写url缩短函数,这是代码(顺便说一句,我认为global在这里不是一件好事:P):$alphabet=array(1=>"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2"
如何缩短ZendFramework中自定义路由的定义?我目前有这样的定义:$route=newZend_Controller_Router_Route(":module/:id",array("controller"=>"index","action"=>"index"),array("id"=>"\d+"));self::$frontController->getRouter()->addRoute('shortcutOne',$route);$route=newZend_Controller_Router_Route(":module/:controller/:id",array(