{"action":"opened","issue":{"url":"https://api.github.com/repos/joomla/joomla-websites/issues/130","labels_url":"https://api.github.com/repos/joomla/joomla-websites/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-websites/issues/130/comments","events_url":"https://api.github.com/repos/joomla/joomla-websites/issues/130/events","html_url":"https://github.com/joomla/joomla-websites/issues/130","id":108837560,"number":130,"title":"[jdocs] I think you mixed controller code with view code","user":{"login":"alisherdavronov","id":2254286,"avatar_url":"https://avatars.githubusercontent.com/u/2254286?v=3","gravatar_id":"","url":"https://api.github.com/users/alisherdavronov","html_url":"https://github.com/alisherdavronov","followers_url":"https://api.github.com/users/alisherdavronov/followers","following_url":"https://api.github.com/users/alisherdavronov/following{/other_user}","gists_url":"https://api.github.com/users/alisherdavronov/gists{/gist_id}","starred_url":"https://api.github.com/users/alisherdavronov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisherdavronov/subscriptions","organizations_url":"https://api.github.com/users/alisherdavronov/orgs","repos_url":"https://api.github.com/users/alisherdavronov/repos","events_url":"https://api.github.com/users/alisherdavronov/events{/privacy}","received_events_url":"https://api.github.com/users/alisherdavronov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-29T10:08:49Z","updated_at":"2015-09-29T10:08:49Z","closed_at":null,"body":"https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_view_to_the_site_part\r\n\r\nCode Explanation\r\n\r\ncontroller.php\r\n\r\nI think you mixed controller code with view code\r\n\r\nin code \"function display($tpl = null) {...}\" is in HelloWorldViewHelloWorld class, but in explanation it is in HelloWorldControllerHelloWorld class"}}