{"action":"created","issue":{"url":"https://api.github.com/repos/laruence/yaf/issues/291","repository_url":"https://api.github.com/repos/laruence/yaf","labels_url":"https://api.github.com/repos/laruence/yaf/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/laruence/yaf/issues/291/comments","events_url":"https://api.github.com/repos/laruence/yaf/issues/291/events","html_url":"https://github.com/laruence/yaf/issues/291","id":163640075,"number":291,"title":"yaf regex router","user":{"login":"fgy58963","id":3829889,"avatar_url":"https://avatars.githubusercontent.com/u/3829889?v=3","gravatar_id":"","url":"https://api.github.com/users/fgy58963","html_url":"https://github.com/fgy58963","followers_url":"https://api.github.com/users/fgy58963/followers","following_url":"https://api.github.com/users/fgy58963/following{/other_user}","gists_url":"https://api.github.com/users/fgy58963/gists{/gist_id}","starred_url":"https://api.github.com/users/fgy58963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgy58963/subscriptions","organizations_url":"https://api.github.com/users/fgy58963/orgs","repos_url":"https://api.github.com/users/fgy58963/repos","events_url":"https://api.github.com/users/fgy58963/events{/privacy}","received_events_url":"https://api.github.com/users/fgy58963/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-04T09:41:39Z","updated_at":"2016-07-05T01:31:08Z","closed_at":"2016-07-04T10:55:08Z","body":"Hi, 我们在使用Yaf框架的正则路由的时候，遇到一个问题。\r\n我们想将路径中的字符串提取出来直接作为controller和action的name使用，但是查阅了文档和搜索了之后，只有将其作为变量的方法。如果使用变量来处理就需要在controller中再次进行一次路由的处理，请问yaf是否能在Controller和action中直接调用正则规则取出的数据……\r\nnew \\Yaf\\Route\\Regex(\r\n                '正则路由',\r\n                array(\r\n                    'module' => 'post',\r\n                    'controller' => 变量1,\r\n                    'action' => 变量2\r\n                    )"},"comment":{"url":"https://api.github.com/repos/laruence/yaf/issues/comments/230370566","html_url":"https://github.com/laruence/yaf/issues/291#issuecomment-230370566","issue_url":"https://api.github.com/repos/laruence/yaf/issues/291","id":230370566,"user":{"login":"fgy58963","id":3829889,"avatar_url":"https://avatars.githubusercontent.com/u/3829889?v=3","gravatar_id":"","url":"https://api.github.com/users/fgy58963","html_url":"https://github.com/fgy58963","followers_url":"https://api.github.com/users/fgy58963/followers","following_url":"https://api.github.com/users/fgy58963/following{/other_user}","gists_url":"https://api.github.com/users/fgy58963/gists{/gist_id}","starred_url":"https://api.github.com/users/fgy58963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgy58963/subscriptions","organizations_url":"https://api.github.com/users/fgy58963/orgs","repos_url":"https://api.github.com/users/fgy58963/repos","events_url":"https://api.github.com/users/fgy58963/events{/privacy}","received_events_url":"https://api.github.com/users/fgy58963/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T01:31:08Z","updated_at":"2016-07-05T01:31:08Z","body":"原来能这么用~谢谢~"}}
{"actor":{"display_login":"fgy58963"}}