{"action":"created","issue":{"url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/issues/2","labels_url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/issues/2/comments","events_url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/issues/2/events","html_url":"https://github.com/PhuongNamCorpsIntern/workspace/issues/2","id":103914526,"number":2,"title":"redirect and  link ","user":{"login":"nguyenquang2302","id":13691088,"avatar_url":"https://avatars.githubusercontent.com/u/13691088?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenquang2302","html_url":"https://github.com/nguyenquang2302","followers_url":"https://api.github.com/users/nguyenquang2302/followers","following_url":"https://api.github.com/users/nguyenquang2302/following{/other_user}","gists_url":"https://api.github.com/users/nguyenquang2302/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenquang2302/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenquang2302/subscriptions","organizations_url":"https://api.github.com/users/nguyenquang2302/orgs","repos_url":"https://api.github.com/users/nguyenquang2302/repos","events_url":"https://api.github.com/users/nguyenquang2302/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenquang2302/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/labels/php","name":"php","color":"5319e7"},{"url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/labels/sifoni","name":"sifoni","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-30T09:48:28Z","updated_at":"2015-08-30T12:35:11Z","closed_at":null,"body":"Có 2 vấn đề   cần giúp đỡ. hjx mọi người giúp với nhen! ( Fw sifoni)\r\n* view \r\n```  \r\nform style=\"float:left\" method=\"post\" action=\"danh_muc\"\r\n\t\t\t\t\t\t\tinput type=\"hidden\" value=\"{{c.id}}\" name=\"id\"\r\n\t\t\t\t\t\t\t\tbutton type=\"submit\" class=\"gree\"\r\n``` \r\n* routing  có \r\n'/danh_muc'=> 'admin\\ProductcategoryController:getlist:listcategory::post',\r\n * controller có function\r\npublic function listcategoryAction()\r\n{\r\n  if($this->getPostData())\r\n  {\r\n$postdata=$this->getPostData();\r\n    $id=$postdata['id'];\r\n  }\r\n}\r\n\r\n2 vấn đề:\r\n 1.  bên 1 function khác mình muốn gọi\r\n return $this->redirect('listcategory')+ thêm truyền biến id qua để function listcategoryAction() có thể nhận được  id.  method=\"post\" nha mọi người :)\r\n2. Có cách nào gọi tên (listcategory ) thay vì đường dẫn( danh_muc ) ngoài view ( twig)  không vậy mọi người.\r\n\r\nthanks !"},"comment":{"url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/issues/comments/136132419","html_url":"https://github.com/PhuongNamCorpsIntern/workspace/issues/2#issuecomment-136132419","issue_url":"https://api.github.com/repos/PhuongNamCorpsIntern/workspace/issues/2","id":136132419,"user":{"login":"nguyenquang2302","id":13691088,"avatar_url":"https://avatars.githubusercontent.com/u/13691088?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenquang2302","html_url":"https://github.com/nguyenquang2302","followers_url":"https://api.github.com/users/nguyenquang2302/followers","following_url":"https://api.github.com/users/nguyenquang2302/following{/other_user}","gists_url":"https://api.github.com/users/nguyenquang2302/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenquang2302/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenquang2302/subscriptions","organizations_url":"https://api.github.com/users/nguyenquang2302/orgs","repos_url":"https://api.github.com/users/nguyenquang2302/repos","events_url":"https://api.github.com/users/nguyenquang2302/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenquang2302/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T12:35:11Z","updated_at":"2015-08-30T12:35:11Z","body":"khi em sử dụng :\r\n```{{ url('listcategory', {id: 2}) }}\r\nhay \r\n```redirect($name_route, ['id' => 2]) \r\nthì"}}