{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/tutorials/issues/82","repository_url":"https://api.github.com/repos/zendframework/tutorials","labels_url":"https://api.github.com/repos/zendframework/tutorials/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/tutorials/issues/82/comments","events_url":"https://api.github.com/repos/zendframework/tutorials/issues/82/events","html_url":"https://github.com/zendframework/tutorials/issues/82","id":216976956,"number":82,"title":"Zend Framework Fatal error:Fatal error: Call to a member function getModuleName() on a non-object in D:\\wamp\\www\\local.api2.voot.com\\application\\libraries\\Zend\\Controller\\Action\\Helper\\ViewRenderer.php ","user":{"login":"akashgangrade","id":17255552,"avatar_url":"https://avatars1.githubusercontent.com/u/17255552?v=3","gravatar_id":"","url":"https://api.github.com/users/akashgangrade","html_url":"https://github.com/akashgangrade","followers_url":"https://api.github.com/users/akashgangrade/followers","following_url":"https://api.github.com/users/akashgangrade/following{/other_user}","gists_url":"https://api.github.com/users/akashgangrade/gists{/gist_id}","starred_url":"https://api.github.com/users/akashgangrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akashgangrade/subscriptions","organizations_url":"https://api.github.com/users/akashgangrade/orgs","repos_url":"https://api.github.com/users/akashgangrade/repos","events_url":"https://api.github.com/users/akashgangrade/events{/privacy}","received_events_url":"https://api.github.com/users/akashgangrade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-25T14:16:39Z","updated_at":"2017-03-25T16:45:24Z","closed_at":null,"body":"I am using Zend framework on my project. I have one controller named IndexController.php and other PlayBackController.php. \r\nI want to call a method of IndexController in playBackController. I have created an object of IndexController but I am getting the error : Fatal error: Call to a member function getModuleName() on a non-object in D:\\wamp\\www\\local.api2.voot.com\\application\\libraries\\Zend\\Controller\\Action\\Helper\\ViewRenderer.php .\r\n\r\nIs there any way to use the function of IndexController in Zend????\r\n"},"comment":{"url":"https://api.github.com/repos/zendframework/tutorials/issues/comments/289223711","html_url":"https://github.com/zendframework/tutorials/issues/82#issuecomment-289223711","issue_url":"https://api.github.com/repos/zendframework/tutorials/issues/82","id":289223711,"user":{"login":"jcaillot","id":22201753,"avatar_url":"https://avatars3.githubusercontent.com/u/22201753?v=3","gravatar_id":"","url":"https://api.github.com/users/jcaillot","html_url":"https://github.com/jcaillot","followers_url":"https://api.github.com/users/jcaillot/followers","following_url":"https://api.github.com/users/jcaillot/following{/other_user}","gists_url":"https://api.github.com/users/jcaillot/gists{/gist_id}","starred_url":"https://api.github.com/users/jcaillot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcaillot/subscriptions","organizations_url":"https://api.github.com/users/jcaillot/orgs","repos_url":"https://api.github.com/users/jcaillot/repos","events_url":"https://api.github.com/users/jcaillot/events{/privacy}","received_events_url":"https://api.github.com/users/jcaillot/received_events","type":"User","site_admin":false},"created_at":"2017-03-25T16:45:24Z","updated_at":"2017-03-25T16:45:24Z","body":"I might be wrong but it seems like your doing the wrong way. Any method that's shared thru many controllers should be created as service. This would keep your controllers as lean as possible. Should one really execute a controller action form somewhere else : first check your architecture as it might begin to fissure, then check the action helper. hope this helps"}}
{"actor":{"display_login":"jcaillot"}}