{"action":"opened","issue":{"url":"https://api.github.com/repos/abc-cms/abc-cms/issues/10","labels_url":"https://api.github.com/repos/abc-cms/abc-cms/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/abc-cms/abc-cms/issues/10/comments","events_url":"https://api.github.com/repos/abc-cms/abc-cms/issues/10/events","html_url":"https://github.com/abc-cms/abc-cms/issues/10","id":66803944,"number":10,"title":"ссылки через функцию","user":{"login":"abc-cms","id":6348599,"avatar_url":"https://avatars.githubusercontent.com/u/6348599?v=3","gravatar_id":"","url":"https://api.github.com/users/abc-cms","html_url":"https://github.com/abc-cms","followers_url":"https://api.github.com/users/abc-cms/followers","following_url":"https://api.github.com/users/abc-cms/following{/other_user}","gists_url":"https://api.github.com/users/abc-cms/gists{/gist_id}","starred_url":"https://api.github.com/users/abc-cms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abc-cms/subscriptions","organizations_url":"https://api.github.com/users/abc-cms/orgs","repos_url":"https://api.github.com/users/abc-cms/repos","events_url":"https://api.github.com/users/abc-cms/events{/privacy}","received_events_url":"https://api.github.com/users/abc-cms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T07:23:32Z","updated_at":"2015-04-07T07:23:32Z","closed_at":null,"body":"есть мысль генерацию ссылок в шаблонах сделать через функцию\r\nпример\r\nurl('shop_product',$q) будет возвращать урл товара\r\nсам урл будет настраиваться внутри функции, можно даже в админку вынести настройку (ну это уже заморочка большая)\r\n\r\nплюсы\r\n1. если вдруг клиенту стрельнет поменять структуру урл товара, то это будет сделано только в двух местах - в функции и в модуле (для обработки скл запроса)\r\n2. если у нас появляются языки то не надо во всех шаблонах доставлять $u[0] а просто в функции включить многоязычность"}}